| Index: runtime/vm/flow_graph_compiler_arm64.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc
|
| index d93adebc54470fd641b231203f3ec03be03981cb..c1d4a0c4c42239749d62dc30d6fd87ca4787ab17 100644
|
| --- a/runtime/vm/flow_graph_compiler_arm64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_arm64.cc
|
| @@ -1078,7 +1078,8 @@ void FlowGraphCompiler::GenerateCall(TokenPosition token_pos,
|
| RawPcDescriptors::Kind kind,
|
| LocationSummary* locs) {
|
| __ BranchLink(stub_entry);
|
| - EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, kind, locs);
|
| + AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos);
|
| + RecordSafepoint(locs);
|
| }
|
|
|
|
|
| @@ -1087,7 +1088,8 @@ void FlowGraphCompiler::GeneratePatchableCall(TokenPosition token_pos,
|
| RawPcDescriptors::Kind kind,
|
| LocationSummary* locs) {
|
| __ BranchLinkPatchable(stub_entry);
|
| - EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, kind, locs);
|
| + AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos);
|
| + RecordSafepoint(locs);
|
| }
|
|
|
|
|
| @@ -1097,7 +1099,8 @@ void FlowGraphCompiler::GenerateDartCall(intptr_t deopt_id,
|
| RawPcDescriptors::Kind kind,
|
| LocationSummary* locs) {
|
| __ BranchLinkPatchable(stub_entry);
|
| - EmitCallsiteMetaData(token_pos, deopt_id, kind, locs);
|
| + AddCurrentDescriptor(kind, deopt_id, token_pos);
|
| + RecordSafepoint(locs);
|
| // Marks either the continuation point in unoptimized code or the
|
| // deoptimization point in optimized code, after call.
|
| const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
|
| @@ -1123,7 +1126,8 @@ void FlowGraphCompiler::GenerateStaticDartCall(intptr_t deopt_id,
|
| ASSERT(is_optimizing());
|
| __ BranchLinkWithEquivalence(stub_entry, target);
|
|
|
| - EmitCallsiteMetaData(token_pos, deopt_id, kind, locs);
|
| + AddCurrentDescriptor(kind, deopt_id, token_pos);
|
| + RecordSafepoint(locs);
|
| // Marks either the continuation point in unoptimized code or the
|
| // deoptimization point in optimized code, after call.
|
| const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
|
| @@ -1144,7 +1148,8 @@ void FlowGraphCompiler::GenerateRuntimeCall(TokenPosition token_pos,
|
| intptr_t argument_count,
|
| LocationSummary* locs) {
|
| __ CallRuntime(entry, argument_count);
|
| - EmitCallsiteMetaData(token_pos, deopt_id, RawPcDescriptors::kOther, locs);
|
| + AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id, token_pos);
|
| + RecordSafepoint(locs);
|
| if (deopt_id != Thread::kNoDeoptId) {
|
| // Marks either the continuation point in unoptimized code or the
|
| // deoptimization point in optimized code, after call.
|
| @@ -1278,7 +1283,6 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall(
|
| // arguments are removed.
|
| AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos);
|
| }
|
| - EmitCatchEntryState(pending_deoptimization_env_, try_index);
|
| __ Drop(argument_count);
|
| }
|
|
|
| @@ -1299,8 +1303,8 @@ void FlowGraphCompiler::EmitSwitchableInstanceCall(const ICData& ic_data,
|
| __ LoadUniqueObject(R5, ic_data);
|
| __ blr(TMP);
|
|
|
| - EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, RawPcDescriptors::kOther,
|
| - locs);
|
| + AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, token_pos);
|
| + RecordSafepoint(locs);
|
| const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
|
| if (is_optimizing()) {
|
| AddDeoptIndexAtCall(deopt_id_after);
|
|
|