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

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
Index: runtime/vm/flow_graph_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/flow_graph_optimizer.h
index 08233a1dbbfdb84729812599e1095c4d1ce7ded7..cd59108378f80a0d5d9215b311fa7546c6aa5d50 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,
@@ -119,8 +120,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,
Cutch 2013/10/22 03:46:16 Minor cleanup here: Make signatures for BuildByteA
- intptr_t receiver_cid,
intptr_t view_cid);
bool BuildByteArrayViewStore(InstanceCallInstr* call,
intptr_t view_cid);

Powered by Google App Engine
This is Rietveld 408576698