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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 2809583002: Use off-heap data for type feedback in PolymorphicInstanceCallInstr (Closed)
Patch Set: More feedback from Slava 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
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index 55f64e92449612c9454afe60c10f167fd61098dc..a5ea9429c95a4a8e540d6a56190420b42e66b0bb 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -2839,8 +2839,12 @@ class CheckedSmiSlowPath : public SlowPathCode {
}
__ pushq(locs->in(0).reg());
__ pushq(locs->in(1).reg());
+ const String& selector =
+ String::Handle(instruction_->call()->ic_data()->target_name());
+ const 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);
@@ -3004,8 +3008,12 @@ class CheckedSmiComparisonSlowPath : public SlowPathCode {
}
__ pushq(locs->in(0).reg());
__ pushq(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);
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698