Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index b8b749b4b26803ce58425fe1e0423e63aa531c4f..88998fe385de42e62c8981584338680271d8a626 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -1098,8 +1098,7 @@ void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, |
RawPcDescriptors::Kind kind, |
LocationSummary* locs) { |
__ BranchLink(stub_entry); |
- AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, kind, locs); |
} |
@@ -1108,8 +1107,7 @@ void FlowGraphCompiler::GeneratePatchableCall(TokenPosition token_pos, |
RawPcDescriptors::Kind kind, |
LocationSummary* locs) { |
__ BranchLinkPatchable(stub_entry); |
- AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, kind, locs); |
} |
@@ -1119,8 +1117,7 @@ void FlowGraphCompiler::GenerateDartCall(intptr_t deopt_id, |
RawPcDescriptors::Kind kind, |
LocationSummary* locs) { |
__ BranchLinkPatchable(stub_entry); |
- AddCurrentDescriptor(kind, deopt_id, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, deopt_id, kind, 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); |
@@ -1146,8 +1143,7 @@ void FlowGraphCompiler::GenerateStaticDartCall(intptr_t deopt_id, |
ASSERT(is_optimizing()); |
__ BranchLinkWithEquivalence(stub_entry, target); |
- AddCurrentDescriptor(kind, deopt_id, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, deopt_id, kind, 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); |
@@ -1168,8 +1164,7 @@ void FlowGraphCompiler::GenerateRuntimeCall(TokenPosition token_pos, |
intptr_t argument_count, |
LocationSummary* locs) { |
__ CallRuntime(entry, argument_count); |
- AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, deopt_id, RawPcDescriptors::kOther, locs); |
if (deopt_id != Thread::kNoDeoptId) { |
// Marks either the continuation point in unoptimized code or the |
// deoptimization point in optimized code, after call. |
@@ -1300,6 +1295,7 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall( |
// arguments are removed. |
AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos); |
} |
+ EmitCatchEntryState(pending_deoptimization_env_, try_index); |
__ Drop(argument_count); |
} |
@@ -1320,8 +1316,8 @@ void FlowGraphCompiler::EmitSwitchableInstanceCall(const ICData& ic_data, |
__ LoadUniqueObject(S5, ic_data); |
__ jalr(T9); |
- AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, token_pos); |
- RecordSafepoint(locs); |
+ EmitCallsiteMetaData(token_pos, Thread::kNoDeoptId, RawPcDescriptors::kOther, |
+ locs); |
const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
if (is_optimizing()) { |
AddDeoptIndexAtCall(deopt_id_after); |