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

Unified Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 15822008: Implements intrinsics for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: runtime/vm/flow_graph_compiler_arm.cc
===================================================================
--- runtime/vm/flow_graph_compiler_arm.cc (revision 23305)
+++ runtime/vm/flow_graph_compiler_arm.cc (working copy)
@@ -1514,8 +1514,10 @@
intptr_t index_scale,
Register array,
intptr_t index) {
- UNIMPLEMENTED();
- return FieldAddress(array, index);
+ const int64_t disp =
+ static_cast<int64_t>(index) * index_scale + DataOffsetFor(cid);
+ ASSERT(Utils::IsAbsoluteUint(12, disp));
regis 2013/05/28 22:01:44 This assert will fire sooner or later. I do not th
zra 2013/05/28 22:49:31 Done.
+ return FieldAddress(array, static_cast<int32_t>(disp));
}

Powered by Google App Engine
This is Rietveld 408576698