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

Unified Diff: runtime/vm/jit_optimizer.h

Issue 2716593002: Propagate this-specialization to regular (megamorphic) calls (Closed)
Patch Set: Created 3 years, 10 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/jit_optimizer.h
diff --git a/runtime/vm/jit_optimizer.h b/runtime/vm/jit_optimizer.h
index cc6ac93fedcf198393c8ef0ee373e63942ae58c4..3fb1b6bac104e1bd7340e7b11d5618ceb7dd48b2 100644
--- a/runtime/vm/jit_optimizer.h
+++ b/runtime/vm/jit_optimizer.h
@@ -44,10 +44,11 @@ class JitOptimizer : public FlowGraphVisitor {
flow_graph_->InsertBefore(next, instr, env, use_kind);
}
+ static const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid);
+
private:
// Attempt to build ICData for call using propagated class-ids.
bool TryCreateICData(InstanceCallInstr* call);
- const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid);
void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call);

Powered by Google App Engine
This is Rietveld 408576698