equal
deleted
inserted
replaced
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "interpreter/bytecodeInterpreter.hpp" |
26 #include "interpreter/bytecodeInterpreter.hpp" |
27 #include "interpreter/cppInterpreterGenerator.hpp" |
27 #include "interpreter/cppInterpreterGenerator.hpp" |
28 #include "interpreter/interpreter.hpp" |
28 #include "interpreter/interpreter.hpp" |
29 #include "interpreter/interpreterRuntime.hpp" |
29 #include "interpreter/interpreterRuntime.hpp" |
30 #include "runtime/logTimer.hpp" |
30 #include "runtime/timerTrace.hpp" |
31 |
31 |
32 #ifdef CC_INTERP |
32 #ifdef CC_INTERP |
33 |
33 |
34 #ifdef ZERO |
34 #ifdef ZERO |
35 # include "entry_zero.hpp" |
35 # include "entry_zero.hpp" |
41 if (_code != NULL) return; |
41 if (_code != NULL) return; |
42 AbstractInterpreter::initialize(); |
42 AbstractInterpreter::initialize(); |
43 |
43 |
44 // generate interpreter |
44 // generate interpreter |
45 { ResourceMark rm; |
45 { ResourceMark rm; |
46 TraceStartupTime timer("Interpreter generation"); |
46 TraceTime timer("Interpreter generation", TRACETIME_LOG(Info, startuptime)); |
47 int code_size = InterpreterCodeSize; |
47 int code_size = InterpreterCodeSize; |
48 NOT_PRODUCT(code_size *= 4;) // debug uses extra interpreter code space |
48 NOT_PRODUCT(code_size *= 4;) // debug uses extra interpreter code space |
49 _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL, |
49 _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL, |
50 "Interpreter"); |
50 "Interpreter"); |
51 CppInterpreterGenerator g(_code); |
51 CppInterpreterGenerator g(_code); |