| Index: runtime/vm/code_generator_ia32.cc
|
| diff --git a/runtime/vm/code_generator_ia32.cc b/runtime/vm/code_generator_ia32.cc
|
| index d279d4aba080daf8416dd33cd965f7205bcdf2e3..2c19f2d47f1224dd53b66f10c9afc68d10ca8150 100644
|
| --- a/runtime/vm/code_generator_ia32.cc
|
| +++ b/runtime/vm/code_generator_ia32.cc
|
| @@ -861,13 +861,12 @@ void CodeGenerator::VisitSequenceNode(SequenceNode* node_sequence) {
|
| (parsed_function_.saved_context_var() != NULL)) {
|
| GenerateStoreVariable(
|
| *parsed_function_.saved_context_var(), CTX, kNoRegister);
|
| - const Immediate raw_null =
|
| - Immediate(reinterpret_cast<intptr_t>(Object::null()));
|
| - __ movl(CTX, raw_null);
|
| + __ StoreNullIntoObject(EAX, FieldAddress(EAX, Context::parent_offset()));
|
| + } else {
|
| + // Chain the new context in EAX to its parent in CTX.
|
| + __ StoreIntoObject(EAX, FieldAddress(EAX, Context::parent_offset()), CTX);
|
| }
|
|
|
| - // Chain the new context in EAX to its parent in CTX.
|
| - __ StoreIntoObject(EAX, FieldAddress(EAX, Context::parent_offset()), CTX);
|
| // Set new context as current context.
|
| __ movl(CTX, EAX);
|
| set_context_level(scope->context_level());
|
|
|