| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // global proxy when called as functions (without an explicit receiver | 126 // global proxy when called as functions (without an explicit receiver |
| 127 // object). | 127 // object). |
| 128 if (info->strict_mode() == SLOPPY && !info->is_native()) { | 128 if (info->strict_mode() == SLOPPY && !info->is_native()) { |
| 129 Label ok; | 129 Label ok; |
| 130 int receiver_offset = info->scope()->num_parameters() * kPointerSize; | 130 int receiver_offset = info->scope()->num_parameters() * kPointerSize; |
| 131 __ ldr(r2, MemOperand(sp, receiver_offset)); | 131 __ ldr(r2, MemOperand(sp, receiver_offset)); |
| 132 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); | 132 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); |
| 133 __ b(ne, &ok); | 133 __ b(ne, &ok); |
| 134 | 134 |
| 135 __ ldr(r2, GlobalObjectOperand()); | 135 __ ldr(r2, GlobalObjectOperand()); |
| 136 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); | 136 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalProxyOffset)); |
| 137 | 137 |
| 138 __ str(r2, MemOperand(sp, receiver_offset)); | 138 __ str(r2, MemOperand(sp, receiver_offset)); |
| 139 | 139 |
| 140 __ bind(&ok); | 140 __ bind(&ok); |
| 141 } | 141 } |
| 142 | 142 |
| 143 // Open a frame scope to indicate that there is a frame on the stack. The | 143 // Open a frame scope to indicate that there is a frame on the stack. The |
| 144 // MANUAL indicates that the scope shouldn't actually generate code to set up | 144 // MANUAL indicates that the scope shouldn't actually generate code to set up |
| 145 // the frame (that is done below). | 145 // the frame (that is done below). |
| 146 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 146 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| (...skipping 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4835 | 4835 |
| 4836 ASSERT(interrupt_address == | 4836 ASSERT(interrupt_address == |
| 4837 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4837 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4838 return OSR_AFTER_STACK_CHECK; | 4838 return OSR_AFTER_STACK_CHECK; |
| 4839 } | 4839 } |
| 4840 | 4840 |
| 4841 | 4841 |
| 4842 } } // namespace v8::internal | 4842 } } // namespace v8::internal |
| 4843 | 4843 |
| 4844 #endif // V8_TARGET_ARCH_ARM | 4844 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |