Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Unified Diff: runtime/vm/intrinsifier_x64.cc

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intrinsifier_x64.cc
diff --git a/runtime/vm/intrinsifier_x64.cc b/runtime/vm/intrinsifier_x64.cc
index 14eb3cf88885901d1df596bb213f4f46d3c760dc..6195a72a9713755f78de9d5bceadf89002e24313 100644
--- a/runtime/vm/intrinsifier_x64.cc
+++ b/runtime/vm/intrinsifier_x64.cc
@@ -1936,7 +1936,8 @@ void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) {
__ xorq(RCX, RCX);
// Tail-call the function.
- __ movq(RDI, FieldAddress(RAX, Function::instructions_offset()));
+ __ movq(CODE_REG, FieldAddress(RAX, Function::code_offset()));
+ __ movq(RDI, FieldAddress(CODE_REG, Code::instructions_offset()));
__ addq(RDI, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ jmp(RDI);
}

Powered by Google App Engine
This is Rietveld 408576698