Commit 941524f8 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS: Fix '[debug] implement intuitive semantics for stepping over await call.'

Port 8d90210a

BUG=

Review-Url: https://codereview.chromium.org/2045553002
Cr-Commit-Position: refs/heads/master@{#36759}
parent d8c2b8f9
......@@ -854,7 +854,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
ExternalReference::debug_suspended_generator_address(masm->isolate());
__ li(t1, Operand(debug_suspended_generator));
__ lw(t1, MemOperand(t1));
__ Branch(&prepare_step_in_suspended_generator, eq, t1, Operand(zero_reg));
__ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(t1));
__ bind(&stepping_prepared);
// Push receiver.
......
......@@ -710,16 +710,16 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
Label stepping_prepared;
ExternalReference step_in_enabled =
ExternalReference::debug_step_in_enabled_address(masm->isolate());
__ li(t1, Operand(step_in_enabled));
__ lb(t1, MemOperand(t1));
__ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg));
__ li(a5, Operand(step_in_enabled));
__ lb(a5, MemOperand(a5));
__ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg));
// Flood function if we need to continue stepping in the suspended generator.
ExternalReference debug_suspended_generator =
ExternalReference::debug_suspended_generator_address(masm->isolate());
__ li(t1, Operand(debug_suspended_generator));
__ lw(t1, MemOperand(t1));
__ Branch(&prepare_step_in_suspended_generator, eq, t1, Operand(zero_reg));
__ li(a5, Operand(debug_suspended_generator));
__ lw(a5, MemOperand(a5));
__ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5));
__ bind(&stepping_prepared);
// Push receiver.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment