src/share/vm/interpreter/cppInterpreter.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/interpreter

src/share/vm/interpreter/cppInterpreter.cpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "interpreter/bytecodeInterpreter.hpp"
  27 #include "interpreter/cppInterpreterGenerator.hpp"
  28 #include "interpreter/interpreter.hpp"
  29 #include "interpreter/interpreterRuntime.hpp"

  30 #include "runtime/logTimer.hpp"
  31 
  32 #ifdef CC_INTERP
  33 
  34 #ifdef ZERO
  35 # include "entry_zero.hpp"
  36 #else
  37 #error "Only Zero CppInterpreter is supported"
  38 #endif
  39 
  40 void CppInterpreter::initialize() {
  41   if (_code != NULL) return;
  42   AbstractInterpreter::initialize();
  43 
  44   // generate interpreter
  45   { ResourceMark rm;
  46     TraceStartupTime timer("Interpreter generation");
  47     int code_size = InterpreterCodeSize;
  48     NOT_PRODUCT(code_size *= 4;)  // debug uses extra interpreter code space
  49     _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL,




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "interpreter/bytecodeInterpreter.hpp"
  27 #include "interpreter/cppInterpreterGenerator.hpp"
  28 #include "interpreter/interpreter.hpp"
  29 #include "interpreter/interpreterRuntime.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "runtime/logTimer.hpp"
  32 
  33 #ifdef CC_INTERP
  34 
  35 #ifdef ZERO
  36 # include "entry_zero.hpp"
  37 #else
  38 #error "Only Zero CppInterpreter is supported"
  39 #endif
  40 
  41 void CppInterpreter::initialize() {
  42   if (_code != NULL) return;
  43   AbstractInterpreter::initialize();
  44 
  45   // generate interpreter
  46   { ResourceMark rm;
  47     TraceStartupTime timer("Interpreter generation");
  48     int code_size = InterpreterCodeSize;
  49     NOT_PRODUCT(code_size *= 4;)  // debug uses extra interpreter code space
  50     _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL,


src/share/vm/interpreter/cppInterpreter.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File