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

Unified Diff: runtime/vm/intrinsifier_x64.cc

Issue 11880022: Immediate index operand for string [] and streamline code for generating array ops. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
« runtime/vm/intermediate_language_x64.cc ('K') | « runtime/vm/intrinsifier_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier_x64.cc
===================================================================
--- runtime/vm/intrinsifier_x64.cc (revision 17016)
+++ runtime/vm/intrinsifier_x64.cc (working copy)
@@ -161,7 +161,7 @@
__ j(ABOVE_EQUAL, &fall_through, Assembler::kNearJump);
// Note that RBX is Smi, i.e, times 2.
ASSERT(kSmiTagShift == 1);
- __ movq(RAX, FieldAddress(RAX, RCX, TIMES_4, sizeof(RawArray)));
+ __ movq(RAX, FieldAddress(RAX, RCX, TIMES_4, Array::data_offset()));
__ ret();
__ Bind(&fall_through);
return false;
@@ -191,7 +191,7 @@
ASSERT(kSmiTagShift == 1);
// Destroy RCX as we will not continue in the function.
__ StoreIntoObject(RAX,
- FieldAddress(RAX, RCX, TIMES_4, sizeof(RawArray)),
+ FieldAddress(RAX, RCX, TIMES_4, Array::data_offset()),
RDX);
// Caller is responsible of preserving the value if necessary.
__ ret();
@@ -304,7 +304,7 @@
// Note that RCX is Smi, i.e, times 4.
ASSERT(kSmiTagShift == 1);
- __ movq(RAX, FieldAddress(RAX, RCX, TIMES_4, sizeof(RawArray)));
+ __ movq(RAX, FieldAddress(RAX, RCX, TIMES_4, Array::data_offset()));
__ ret();
__ Bind(&fall_through);
return false;
@@ -331,7 +331,7 @@
// Note that RCX is Smi, i.e, times 4.
ASSERT(kSmiTagShift == 1);
__ StoreIntoObject(RAX,
- FieldAddress(RAX, RCX, TIMES_4, sizeof(RawArray)),
+ FieldAddress(RAX, RCX, TIMES_4, Array::data_offset()),
RDX);
__ ret();
__ Bind(&fall_through);
@@ -400,7 +400,7 @@
__ movq(RAX, Address(RSP, + 1 * kWordSize)); // Value
ASSERT(kSmiTagShift == 1);
__ StoreIntoObject(RDX,
- FieldAddress(RDX, RCX, TIMES_4, sizeof(RawArray)),
+ FieldAddress(RDX, RCX, TIMES_4, Array::data_offset()),
RAX);
const Immediate raw_null =
Immediate(reinterpret_cast<int64_t>(Object::null()));
« runtime/vm/intermediate_language_x64.cc ('K') | « runtime/vm/intrinsifier_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698