Index: runtime/vm/intermediate_language.cc |
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc |
index cc5e51f9a91bec5a4dcc6b578d255df57b05aa9d..43c10c6227bac8f0770b1ebc52d3ae3297b51a49 100644 |
--- a/runtime/vm/intermediate_language.cc |
+++ b/runtime/vm/intermediate_language.cc |
@@ -3329,9 +3329,10 @@ void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
__ PushConstant(function()); |
__ StaticCall(ArgumentCount(), argdesc_kidx); |
- compiler->AddCurrentDescriptor(RawPcDescriptors::kUnoptStaticCall, |
- deopt_id(), |
- token_pos()); |
+ RawPcDescriptors::Kind kind = (compiler->is_optimizing()) |
+ ? RawPcDescriptors::kOther |
+ : RawPcDescriptors::kUnoptStaticCall; |
+ compiler->AddCurrentDescriptor(kind, deopt_id(), token_pos()); |
compiler->RecordAfterCall(this); |