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

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 26191002: Hook ByteArrayViewLoad operations into polymorphic inliner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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_inliner.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/flow_graph_optimizer.h
index 79d6fe36d3642b440a54a0e8b34478faa02e47a1..17fd3cf0edaaf47554f05d0f227736e59a3d4911 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/flow_graph_optimizer.h
@@ -44,7 +44,8 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
void AnalyzeTryCatch();
- bool TryInlineRecognizedMethod(const Function& target,
+ bool TryInlineRecognizedMethod(intptr_t receiver_cid,
+ const Function& target,
Instruction* call,
intptr_t token_pos,
const ICData& ic_data,
@@ -118,8 +119,21 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
intptr_t cid);
+ bool InlineByteArrayViewLoad(Instruction* call,
+ intptr_t array_cid,
+ intptr_t view_cid,
+ const ICData& ic_data,
+ TargetEntryInstr** entry,
+ Definition** last);
+
+ intptr_t PrepareInlineByteArrayViewOp(Instruction* call,
+ intptr_t array_cid,
+ intptr_t view_cid,
+ Definition** array,
+ Definition* index,
+ Instruction** cursor);
+
bool BuildByteArrayViewLoad(InstanceCallInstr* call,
- intptr_t receiver_cid,
intptr_t view_cid);
bool BuildByteArrayViewStore(InstanceCallInstr* call,
intptr_t view_cid);
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698