Skip to content

Commit e436200

Browse files
committed
8008243: Zero: Implement fast bytecodes
Reviewed-by: rkennke, coleenp
1 parent bd92674 commit e436200

File tree

4 files changed

+544
-75
lines changed

4 files changed

+544
-75
lines changed

src/hotspot/cpu/zero/zeroInterpreter_zero.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,17 @@ void ZeroInterpreter::main_loop(int recurse, TRAPS) {
186186

187187
// Call the interpreter
188188
if (JvmtiExport::can_post_interpreter_events()) {
189-
BytecodeInterpreter::run<true>(istate);
189+
if (RewriteBytecodes) {
190+
BytecodeInterpreter::run<true, true>(istate);
191+
} else {
192+
BytecodeInterpreter::run<true, false>(istate);
193+
}
190194
} else {
191-
BytecodeInterpreter::run<false>(istate);
195+
if (RewriteBytecodes) {
196+
BytecodeInterpreter::run<false, true>(istate);
197+
} else {
198+
BytecodeInterpreter::run<false, false>(istate);
199+
}
192200
}
193201
fixup_after_potential_safepoint();
194202

0 commit comments

Comments
 (0)