LCOV - code coverage report
Current view: directory - js/src/assembler/moco - MocoStubs.h (source / functions) Found Hit Coverage
Test: app.info Lines: 6 6 100.0 %
Date: 2012-06-02 Functions: 4 4 100.0 %

       1                 : /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
       2                 :  * vim: set ts=4 sw=4 et tw=79 ft=cpp:
       3                 :  *
       4                 :  * ***** BEGIN LICENSE BLOCK *****
       5                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       6                 :  *
       7                 :  * The contents of this file are subject to the Mozilla Public License Version
       8                 :  * 1.1 (the "License"); you may not use this file except in compliance with
       9                 :  * the License. You may obtain a copy of the License at
      10                 :  * http://www.mozilla.org/MPL/
      11                 :  *
      12                 :  * Software distributed under the License is distributed on an "AS IS" basis,
      13                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      14                 :  * for the specific language governing rights and limitations under the
      15                 :  * License.
      16                 :  *
      17                 :  * The Original Code is Mozilla Communicator client code, released
      18                 :  * March 31, 1998.
      19                 :  *
      20                 :  * The Initial Developer of the Original Code is
      21                 :  * Netscape Communications Corporation.
      22                 :  * Portions created by the Initial Developer are Copyright (C) 1998
      23                 :  * the Initial Developer. All Rights Reserved.
      24                 :  *
      25                 :  * Contributor(s):
      26                 :  *   Julian Seward <jseward@acm.org>
      27                 :  *
      28                 :  * Alternatively, the contents of this file may be used under the terms of
      29                 :  * either of the GNU General Public License Version 2 or later (the "GPL"),
      30                 :  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      31                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      32                 :  * of those above. If you wish to allow use of your version of this file only
      33                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      34                 :  * use your version of this file under the terms of the MPL, indicate your
      35                 :  * decision by deleting the provisions above and replace them with the notice
      36                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      37                 :  * the provisions above, a recipient may use your version of this file under
      38                 :  * the terms of any one of the MPL, the GPL or the LGPL.
      39                 :  *
      40                 :  * ***** END LICENSE BLOCK ***** */
      41                 : 
      42                 : #ifndef _include_assembler_moco_stubs_h_
      43                 : #define _include_assembler_moco_stubs_h_
      44                 : 
      45                 : namespace JSC {
      46                 : 
      47                 : class JITCode {
      48                 : public:
      49          998578 :   JITCode(void* start, size_t size)
      50          998578 :     : m_start(start), m_size(size)
      51          998578 :   { }
      52          844904 :   JITCode() { }
      53          549016 :   void*  start() const { return m_start; }
      54          259855 :   size_t size() const { return m_size; }
      55                 : private:
      56                 :   void*  m_start;
      57                 :   size_t m_size;
      58                 : };
      59                 : 
      60                 : class CodeBlock {
      61                 : public:
      62                 :   CodeBlock(JITCode& jc)
      63                 :     : m_jitcode(jc)
      64                 :   {
      65                 :   }
      66                 :   JITCode& getJITCode() { return m_jitcode; }
      67                 : private:
      68                 :   JITCode& m_jitcode;
      69                 : };
      70                 : 
      71                 : } // namespace JSC
      72                 : 
      73                 : #endif /* _include_assembler_moco_stubs_h_ */
      74                 : 

Generated by: LCOV version 1.7