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

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 ad3ab68cd9e718850a1a4e8bf64715cc4ee155d6..6b92cb0756f77987c2e54d2d7179af52b100b304 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/flow_graph_optimizer.h
@@ -119,7 +119,22 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
intptr_t cid);
- bool BuildByteArrayViewLoad(InstanceCallInstr* call,
+ bool InlineByteArrayViewLoad(MethodRecognizer::Kind kind,
+ Instruction* call,
+ 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(MethodRecognizer::Kind kind,
+ InstanceCallInstr* call,
intptr_t receiver_cid,
intptr_t view_cid);
bool BuildByteArrayViewStore(InstanceCallInstr* call,

Powered by Google App Engine
This is Rietveld 408576698