equal
deleted
inserted
replaced
29 #include "oops/method.hpp" |
29 #include "oops/method.hpp" |
30 #include "runtime/frame.inline.hpp" |
30 #include "runtime/frame.inline.hpp" |
31 #include "utilities/debug.hpp" |
31 #include "utilities/debug.hpp" |
32 #include "utilities/macros.hpp" |
32 #include "utilities/macros.hpp" |
33 |
33 |
|
34 // Size of interpreter code. Increase if too small. Interpreter will |
|
35 // fail with a guarantee ("not enough space for interpreter generation"); |
|
36 // if too small. |
|
37 // Run with +PrintInterpreter to get the VM to print out the size. |
|
38 // Max size with JVMTI |
|
39 int TemplateInterpreter::InterpreterCodeSize = 230*K; |
34 |
40 |
35 int AbstractInterpreter::BasicType_as_index(BasicType type) { |
41 int AbstractInterpreter::BasicType_as_index(BasicType type) { |
36 int i = 0; |
42 int i = 0; |
37 switch (type) { |
43 switch (type) { |
38 case T_BOOLEAN: i = 0; break; |
44 case T_BOOLEAN: i = 0; break; |
77 int monitors, |
83 int monitors, |
78 int callee_params, |
84 int callee_params, |
79 int callee_locals, |
85 int callee_locals, |
80 bool is_top_frame) { |
86 bool is_top_frame) { |
81 // Note: This calculation must exactly parallel the frame setup |
87 // Note: This calculation must exactly parallel the frame setup |
82 // in InterpreterGenerator::generate_fixed_frame. |
88 // in TemplateInterpreterGenerator::generate_fixed_frame. |
83 assert(Interpreter::stackElementWords == 1, "sanity"); |
89 assert(Interpreter::stackElementWords == 1, "sanity"); |
84 const int max_alignment_space = StackAlignmentInBytes / Interpreter::stackElementSize; |
90 const int max_alignment_space = StackAlignmentInBytes / Interpreter::stackElementSize; |
85 const int abi_scratch = is_top_frame ? (frame::abi_reg_args_size / Interpreter::stackElementSize) : |
91 const int abi_scratch = is_top_frame ? (frame::abi_reg_args_size / Interpreter::stackElementSize) : |
86 (frame::abi_minframe_size / Interpreter::stackElementSize); |
92 (frame::abi_minframe_size / Interpreter::stackElementSize); |
87 const int size = |
93 const int size = |