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

Unified Diff: runtime/vm/intermediate_language_mips.cc

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/intermediate_language_mips.cc
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc
index 5c576ca258f9a0c125fcf810ea7c2aa0c21032d9..7de32f2fe79c7a36eb7e6bf25f3762e3507109d2 100644
--- a/runtime/vm/intermediate_language_mips.cc
+++ b/runtime/vm/intermediate_language_mips.cc
@@ -3004,8 +3004,12 @@ class CheckedSmiSlowPath : public SlowPathCode {
}
__ Push(locs->in(0).reg());
__ Push(locs->in(1).reg());
+ String& selector =
+ String::Handle(instruction_->call()->ic_data()->target_name());
+ Array& argument_names =
+ Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
compiler->EmitMegamorphicInstanceCall(
- *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
+ selector, argument_names, instruction_->call()->ArgumentCount(),
instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
locs, try_index_,
/* slow_path_argument_count = */ 2);
@@ -3140,8 +3144,12 @@ class CheckedSmiComparisonSlowPath : public SlowPathCode {
}
__ Push(locs->in(0).reg());
__ Push(locs->in(1).reg());
+ String& selector =
+ String::Handle(instruction_->call()->ic_data()->target_name());
+ Array& argument_names =
+ Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
compiler->EmitMegamorphicInstanceCall(
- *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
+ selector, argument_names, instruction_->call()->ArgumentCount(),
instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
locs, try_index_,
/* slow_path_argument_count = */ 2);
@@ -5078,7 +5086,7 @@ void CheckClassInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
Register biased_cid = temp;
__ LoadClassId(biased_cid, value);
- GrowableArray<CidRangeTarget> sorted_ic_data;
+ ZoneGrowableArray<CidRangeTarget> sorted_ic_data;
FlowGraphCompiler::SortICDataByCount(unary_checks(), &sorted_ic_data,
/* drop_smi = */ true);

Powered by Google App Engine
This is Rietveld 408576698