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

Unified Diff: runtime/vm/jit_optimizer.h

Issue 2809583002: Use off-heap data for type feedback in PolymorphicInstanceCallInstr (Closed)
Patch Set: Created 3 years, 8 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 23dd278db3d4671297dfbe95918f6e5a72f8ef35..4b323d55f11ac773c720d79d8133138c27c460b2 100644
--- a/runtime/vm/jit_optimizer.h
+++ b/runtime/vm/jit_optimizer.h
@@ -10,6 +10,7 @@
namespace dart {
+struct CidRangeTarget;
class CSEInstructionMap;
template <typename T>
class GrowableArray;
@@ -44,6 +45,12 @@ class JitOptimizer : public FlowGraphVisitor {
flow_graph_->InsertBefore(next, instr, env, use_kind);
}
+ // Creates the off-heap PolymorphicTargets object that reflects the contents
+ // of the on-VM-heap IC data. Also expands the class-ids to neighbouring
+ // classes that inherit the same method.
+ static PolymorphicTargets* CreatePolymorphicTargets(Zone* zone,
+ const ICData& ic_data);
+
private:
// Attempt to build ICData for call using propagated class-ids.
bool TryCreateICData(InstanceCallInstr* call);
@@ -52,12 +59,6 @@ class JitOptimizer : public FlowGraphVisitor {
bool TryReplaceWithIndexedOp(InstanceCallInstr* call);
- void TryExpandClassesInICData(const ICData& ic_data);
- bool LookupMethodFor(int class_id,
- const ArgumentsDescriptor& args_desc,
- const String& name,
- Function* fn_return);
-
bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);

Powered by Google App Engine
This is Rietveld 408576698