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

Unified Diff: runtime/vm/intrinsifier.cc

Issue 2452453002: Support unaligned integer loads on ARM and MIPS. (Closed)
Patch Set: review Created 4 years, 1 month 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/intermediate_language_mips.cc ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index e0355c9ed1a87a087531f0400e5e384034859d60..331dd84ea17beccdf1bd2741bcc000b840ddc230 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -419,6 +419,7 @@ static bool IntrinsifyArrayGetIndexed(FlowGraph* flow_graph,
new Value(index),
Instance::ElementSizeFor(array_cid), // index scale
array_cid,
+ kAlignedAccess,
Thread::kNoDeoptId,
builder.TokenPos()));
// Box and/or convert result if necessary.
@@ -581,6 +582,7 @@ static bool IntrinsifyArraySetIndexed(FlowGraph* flow_graph,
kNoStoreBarrier,
Instance::ElementSizeFor(array_cid), // index scale
array_cid,
+ kAlignedAccess,
Thread::kNoDeoptId,
builder.TokenPos()));
// Return null.
@@ -733,6 +735,7 @@ static bool BuildCodeUnitAt(FlowGraph* flow_graph, intptr_t cid) {
new Value(index),
Instance::ElementSizeFor(cid),
cid,
+ kAlignedAccess,
Thread::kNoDeoptId,
builder.TokenPos()));
builder.AddIntrinsicReturn(new Value(result));
@@ -962,6 +965,7 @@ bool Intrinsifier::Build_GrowableArrayGetIndexed(FlowGraph* flow_graph) {
new Value(index),
Instance::ElementSizeFor(kArrayCid), // index scale
kArrayCid,
+ kAlignedAccess,
Thread::kNoDeoptId,
builder.TokenPos()));
builder.AddIntrinsicReturn(new Value(result));
@@ -998,6 +1002,7 @@ bool Intrinsifier::Build_GrowableArraySetIndexed(FlowGraph* flow_graph) {
kEmitStoreBarrier,
Instance::ElementSizeFor(kArrayCid), // index scale
kArrayCid,
+ kAlignedAccess,
Thread::kNoDeoptId,
builder.TokenPos()));
// Return null.
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698