MIPS: Fix '[debug] implement intuitive semantics for stepping over await call.'
Port 8d90210a1e
BUG=
Review-Url: https://codereview.chromium.org/2045553002
Cr-Commit-Position: refs/heads/master@{#36759}
This commit is contained in:
parent
d8c2b8f982
commit
941524f895
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user