| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index 92a2903b22acf73e1950c5a33e5c2a2097cbf1bd..b615941fad16b51c183160cc2be077fe32b79e9e 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -3708,9 +3708,13 @@ Definition* EffectGraphVisitor::BuildStoreStaticField(
|
| // If the right hand side is an expression that does not contain
|
| // a safe point for the debugger to stop, add an explicit stub
|
| // call.
|
| - if ((node->value()->IsLiteralNode() ||
|
| - node->value()->IsLoadLocalNode() ||
|
| - node->value()->IsClosureNode()) &&
|
| + AstNode* val = node->value();
|
| + if (val->IsAssignableNode()) {
|
| + val = val->AsAssignableNode()->expr();
|
| + }
|
| + if ((val->IsLiteralNode() ||
|
| + val->IsLoadLocalNode() ||
|
| + val->IsClosureNode()) &&
|
| node->token_pos().IsDebugPause()) {
|
| AddInstruction(new(Z) DebugStepCheckInstr(
|
| node->token_pos(), RawPcDescriptors::kRuntimeCall));
|
|
|