Commit 5308f83d authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[nojit] Skip on-heap trampoline in Invoke

This skips one level of indirection by calling the off-heap entry
point directly instead of going through the on-heap Code trampoline.

Bug: v8:7777
Change-Id: If667ea6cd6138ab1c12aa861ef441109008e4fba
Reviewed-on: https://chromium-review.googlesource.com/c/1382459Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58324}
parent d520e5f5
......@@ -275,7 +275,7 @@ V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,
Object*** argv, Address root_register_value)>;
// clang-format on
JSEntryFunction stub_entry =
JSEntryFunction::FromAddress(isolate, code->entry());
JSEntryFunction::FromAddress(isolate, code->InstructionStart());
if (FLAG_clear_exceptions_on_js_entry) isolate->clear_pending_exception();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment