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

Unified Diff: runtime/vm/aot_optimizer.cc

Issue 2064693003: Remember inside an ICData if it is for a static call or an instance call (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | runtime/vm/code_patcher_arm64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/aot_optimizer.cc
diff --git a/runtime/vm/aot_optimizer.cc b/runtime/vm/aot_optimizer.cc
index 63a62534eb28675731d897b186275c10dfdb6524..7cae460a5424d2a03c30e9daf8f0c2e39acafcfa 100644
--- a/runtime/vm/aot_optimizer.cc
+++ b/runtime/vm/aot_optimizer.cc
@@ -76,7 +76,7 @@ void AotOptimizer::PopulateWithICData() {
const ICData& ic_data = ICData::ZoneHandle(zone(), ICData::New(
function(), call->function_name(),
arguments_descriptor, call->deopt_id(),
- call->checked_argument_count()));
+ call->checked_argument_count(), false));
call->set_ic_data(&ic_data);
}
}
@@ -256,7 +256,7 @@ const ICData& AotOptimizer::TrySpecializeICData(const ICData& ic_data,
String::Handle(Z, ic_data.target_name()),
Object::empty_array(), // Dummy argument descriptor.
ic_data.deopt_id(),
- ic_data.NumArgsTested()));
+ ic_data.NumArgsTested(), false));
new_ic_data.SetDeoptReasons(ic_data.DeoptReasons());
new_ic_data.AddReceiverCheck(cid, function);
return new_ic_data;
@@ -2447,7 +2447,8 @@ void AotOptimizer::VisitInstanceCall(InstanceCallInstr* instr) {
instr->function_name(),
args_desc_array,
Thread::kNoDeoptId,
- /* args_tested = */ 1));
+ /* args_tested = */ 1,
+ false));
ic_data.AddReceiverCheck(receiver_class.id(), function);
PolymorphicInstanceCallInstr* call =
new(Z) PolymorphicInstanceCallInstr(instr, ic_data,
@@ -2520,7 +2521,7 @@ void AotOptimizer::VisitInstanceCall(InstanceCallInstr* instr) {
instr->function_name(),
args_desc_array,
Thread::kNoDeoptId,
- /* args_tested = */ 1);
+ /* args_tested = */ 1, false);
for (intptr_t j = 0; j < i; j++) {
ic_data.AddReceiverCheck(class_ids[j], single_target);
}
« no previous file with comments | « no previous file | runtime/vm/code_patcher_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698