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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 311963002: In class Function replace current code field with current instruction field, that way we save one l… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
===================================================================
--- runtime/vm/stub_code_x64.cc (revision 36916)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -548,8 +548,7 @@
__ popq(RBX); // Restore IC data.
__ LeaveStubFrame();
- __ movq(RCX, FieldAddress(RAX, Function::code_offset()));
- __ movq(RCX, FieldAddress(RCX, Code::instructions_offset()));
+ __ movq(RCX, FieldAddress(RAX, Function::instructions_offset()));
__ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ jmp(RCX);
}
@@ -1341,8 +1340,7 @@
__ Bind(&call_target_function);
// RAX: Target function.
Label is_compiled;
- __ movq(RCX, FieldAddress(RAX, Function::code_offset()));
- __ movq(RCX, FieldAddress(RCX, Code::instructions_offset()));
+ __ movq(RCX, FieldAddress(RAX, Function::instructions_offset()));
__ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ jmp(RCX);
@@ -1488,9 +1486,8 @@
// Get function and call it, if possible.
__ movq(RAX, Address(R12, target_offset));
- __ movq(RCX, FieldAddress(RAX, Function::code_offset()));
- // RCX: Target code.
- __ movq(RCX, FieldAddress(RCX, Code::instructions_offset()));
+ __ movq(RCX, FieldAddress(RAX, Function::instructions_offset()));
+ // RCX: Target instructions.
__ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ jmp(RCX);
}
@@ -1518,8 +1515,7 @@
__ popq(R10); // Restore arguments descriptor array.
__ LeaveStubFrame();
- __ movq(RAX, FieldAddress(RAX, Function::code_offset()));
- __ movq(RAX, FieldAddress(RAX, Code::instructions_offset()));
+ __ movq(RAX, FieldAddress(RAX, Function::instructions_offset()));
__ addq(RAX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ jmp(RAX);
}
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698