Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8008243: Zero: Implement fast bytecodes
Backport-of: e4362007da8e40c076493364df91cf85960a03e7
  • Loading branch information
shipilev committed Jan 3, 2023
1 parent 0916032 commit a395cf7
Show file tree
Hide file tree
Showing 4 changed files with 544 additions and 75 deletions.
12 changes: 10 additions & 2 deletions src/hotspot/cpu/zero/zeroInterpreter_zero.cpp
Expand Up @@ -186,9 +186,17 @@ void ZeroInterpreter::main_loop(int recurse, TRAPS) {

// Call the interpreter
if (JvmtiExport::can_post_interpreter_events()) {
BytecodeInterpreter::run<true>(istate);
if (RewriteBytecodes) {
BytecodeInterpreter::run<true, true>(istate);
} else {
BytecodeInterpreter::run<true, false>(istate);
}
} else {
BytecodeInterpreter::run<false>(istate);
if (RewriteBytecodes) {
BytecodeInterpreter::run<false, true>(istate);
} else {
BytecodeInterpreter::run<false, false>(istate);
}
}
fixup_after_potential_safepoint();

Expand Down

1 comment on commit a395cf7

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.