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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 294223003: Last cross-platform cleanup in preparation of improved ARM code for indexed (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/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 36576)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -311,7 +311,7 @@
void FlowGraphOptimizer::AppendLoadIndexedForMerged(Definition* instr,
intptr_t ix,
intptr_t cid) {
- const intptr_t index_scale = FlowGraphCompiler::ElementSizeFor(cid);
+ const intptr_t index_scale = Instance::ElementSizeFor(cid);
ConstantInstr* index_instr =
flow_graph()->GetConstant(Smi::Handle(Smi::New(ix)));
LoadIndexedInstr* load = new LoadIndexedInstr(new Value(instr),
@@ -1301,7 +1301,7 @@
FlowGraph::kValue);
}
- intptr_t index_scale = FlowGraphCompiler::ElementSizeFor(array_cid);
+ const intptr_t index_scale = Instance::ElementSizeFor(array_cid);
*last = new StoreIndexedInstr(new Value(array),
new Value(index),
new Value(stored_value),
@@ -1653,7 +1653,7 @@
}
// Array load and return.
- intptr_t index_scale = FlowGraphCompiler::ElementSizeFor(array_cid);
+ intptr_t index_scale = Instance::ElementSizeFor(array_cid);
*last = new LoadIndexedInstr(new Value(array),
new Value(index),
index_scale,
@@ -2724,7 +2724,7 @@
LoadIndexedInstr* load_indexed = new LoadIndexedInstr(
new Value(str),
new Value(index),
- FlowGraphCompiler::ElementSizeFor(cid),
+ Instance::ElementSizeFor(cid),
cid,
Isolate::kNoDeoptId,
call->token_pos());
@@ -3708,7 +3708,7 @@
NULL,
FlowGraph::kValue);
- intptr_t element_size = FlowGraphCompiler::ElementSizeFor(array_cid);
+ intptr_t element_size = Instance::ElementSizeFor(array_cid);
ConstantInstr* bytes_per_element =
flow_graph()->GetConstant(Smi::Handle(Smi::New(element_size)));
BinarySmiOpInstr* len_in_bytes =
@@ -3721,7 +3721,7 @@
ConstantInstr* length_adjustment =
flow_graph()->GetConstant(Smi::Handle(Smi::New(
- FlowGraphCompiler::ElementSizeFor(view_cid) - 1)));
+ Instance::ElementSizeFor(view_cid) - 1)));
// adjusted_length = len_in_bytes - (element_size - 1).
BinarySmiOpInstr* adjusted_length =
new BinarySmiOpInstr(Token::kSUB,
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698