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

Unified Diff: vm/stub_code_x64.cc

Issue 9017024: X64: check all cases with "__ movq(FieldAddress" and converted them to StoreIntoObject if appropr... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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
« vm/code_generator_x64.cc ('K') | « vm/code_generator_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stub_code_x64.cc
===================================================================
--- vm/stub_code_x64.cc (revision 2709)
+++ vm/stub_code_x64.cc (working copy)
@@ -614,16 +614,18 @@
// R10: Array length as Smi.
// Store the type argument field.
- __ movq(FieldAddress(RAX, Array::type_arguments_offset()), RBX);
+ __ StoreIntoObject(RAX,
+ FieldAddress(RAX, Array::type_arguments_offset()),
+ RBX);
// Set the length field.
- __ movq(FieldAddress(RAX, Array::length_offset()), R10);
+ __ StoreIntoObject(RAX, FieldAddress(RAX, Array::length_offset()), R10);
cshapiro 2011/12/21 19:45:06 This should always be a SMI so a store check would
srdjan 2011/12/21 21:29:12 I am concerned to add here an implicit knwoledge t
// Store class value for array.
__ movq(RBX, FieldAddress(CTX, Context::isolate_offset()));
__ movq(RBX, Address(RBX, Isolate::object_store_offset()));
__ movq(RBX, Address(RBX, ObjectStore::array_class_offset()));
- __ movq(FieldAddress(RAX, Array::class_offset()), RBX);
+ __ StoreIntoObject(RAX, FieldAddress(RAX, Array::class_offset()), RBX);
__ movq(FieldAddress(RAX, Array::tags_offset()), Immediate(0)); // Tags.
// Initialize all array elements to raw_null.
« vm/code_generator_x64.cc ('K') | « vm/code_generator_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698