| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index a44600727579043f89852f211f7d61ef3838c3e2..575b8b128c668182ca43d42c18caf8052faadda9 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -2522,7 +2522,7 @@ void CEntryStub::GenerateThrowUncatchable(MacroAssembler* masm,
|
| // Set pending exception and r0 to out of memory exception.
|
| Failure* out_of_memory = Failure::OutOfMemoryException();
|
| __ mov(r0, Operand(reinterpret_cast<int32_t>(out_of_memory)));
|
| - __ mov(r2, Operand(ExternalReference(Top::k_pending_exception_address)));
|
| + __ mov(r2, Operand(ExternalReference::pending_exception_address()));
|
| __ str(r0, MemOperand(r2));
|
| }
|
|
|
| @@ -2669,7 +2669,7 @@ void CEntryStub::GenerateCore(MacroAssembler* masm,
|
| // Retrieve the pending exception and clear the variable.
|
| __ mov(ip, Operand(ExternalReference::the_hole_value_location()));
|
| __ ldr(r3, MemOperand(ip));
|
| - __ mov(ip, Operand(ExternalReference(Top::k_pending_exception_address)));
|
| + __ mov(ip, Operand(ExternalReference::pending_exception_address()));
|
| __ ldr(r0, MemOperand(ip));
|
| __ str(r3, MemOperand(ip));
|
|
|
| @@ -2805,7 +2805,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
|
| // exception field in the JSEnv and return a failure sentinel.
|
| // Coming in here the fp will be invalid because the PushTryHandler below
|
| // sets it to 0 to signal the existence of the JSEntry frame.
|
| - __ mov(ip, Operand(ExternalReference(Top::k_pending_exception_address)));
|
| + __ mov(ip, Operand(ExternalReference::pending_exception_address()));
|
| __ str(r0, MemOperand(ip));
|
| __ mov(r0, Operand(reinterpret_cast<int32_t>(Failure::Exception())));
|
| __ b(&exit);
|
| @@ -2822,7 +2822,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
|
| // Clear any pending exceptions.
|
| __ mov(ip, Operand(ExternalReference::the_hole_value_location()));
|
| __ ldr(r5, MemOperand(ip));
|
| - __ mov(ip, Operand(ExternalReference(Top::k_pending_exception_address)));
|
| + __ mov(ip, Operand(ExternalReference::pending_exception_address()));
|
| __ str(r5, MemOperand(ip));
|
|
|
| // Invoke the function by calling through JS entry trampoline builtin.
|
| @@ -3489,7 +3489,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
|
| // TODO(592): Rerunning the RegExp to get the stack overflow exception.
|
| __ mov(r0, Operand(ExternalReference::the_hole_value_location()));
|
| __ ldr(r0, MemOperand(r0, 0));
|
| - __ mov(r1, Operand(ExternalReference(Top::k_pending_exception_address)));
|
| + __ mov(r1, Operand(ExternalReference::pending_exception_address()));
|
| __ ldr(r1, MemOperand(r1, 0));
|
| __ cmp(r0, r1);
|
| __ b(eq, &runtime);
|
|
|