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 |
31 |
31 #ifdef CC_INTERP |
32 #ifdef CC_INTERP |
32 |
33 |
33 #ifdef ZERO |
34 #ifdef ZERO |
34 # include "entry_zero.hpp" |
35 # include "entry_zero.hpp" |
40 if (_code != NULL) return; |
41 if (_code != NULL) return; |
41 AbstractInterpreter::initialize(); |
42 AbstractInterpreter::initialize(); |
42 |
43 |
43 // generate interpreter |
44 // generate interpreter |
44 { ResourceMark rm; |
45 { ResourceMark rm; |
45 TraceTime timer("Interpreter generation", TraceStartupTime); |
46 TraceStartupTime timer("Interpreter generation"); |
46 int code_size = InterpreterCodeSize; |
47 int code_size = InterpreterCodeSize; |
47 NOT_PRODUCT(code_size *= 4;) // debug uses extra interpreter code space |
48 NOT_PRODUCT(code_size *= 4;) // debug uses extra interpreter code space |
48 _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL, |
49 _code = new StubQueue(new InterpreterCodeletInterface, code_size, NULL, |
49 "Interpreter"); |
50 "Interpreter"); |
50 CppInterpreterGenerator g(_code); |
51 CppInterpreterGenerator g(_code); |