| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 if (info->strict_mode() == SLOPPY && !info->is_native()) { | 116 if (info->strict_mode() == SLOPPY && !info->is_native()) { |
| 117 Label ok; | 117 Label ok; |
| 118 // +1 for return address. | 118 // +1 for return address. |
| 119 int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize; | 119 int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize; |
| 120 __ mov(ecx, Operand(esp, receiver_offset)); | 120 __ mov(ecx, Operand(esp, receiver_offset)); |
| 121 | 121 |
| 122 __ cmp(ecx, isolate()->factory()->undefined_value()); | 122 __ cmp(ecx, isolate()->factory()->undefined_value()); |
| 123 __ j(not_equal, &ok, Label::kNear); | 123 __ j(not_equal, &ok, Label::kNear); |
| 124 | 124 |
| 125 __ mov(ecx, GlobalObjectOperand()); | 125 __ mov(ecx, GlobalObjectOperand()); |
| 126 __ mov(ecx, FieldOperand(ecx, GlobalObject::kGlobalReceiverOffset)); | 126 __ mov(ecx, FieldOperand(ecx, GlobalObject::kGlobalProxyOffset)); |
| 127 | 127 |
| 128 __ mov(Operand(esp, receiver_offset), ecx); | 128 __ mov(Operand(esp, receiver_offset), ecx); |
| 129 | 129 |
| 130 __ bind(&ok); | 130 __ bind(&ok); |
| 131 } | 131 } |
| 132 | 132 |
| 133 // Open a frame scope to indicate that there is a frame on the stack. The | 133 // Open a frame scope to indicate that there is a frame on the stack. The |
| 134 // MANUAL indicates that the scope shouldn't actually generate code to set up | 134 // MANUAL indicates that the scope shouldn't actually generate code to set up |
| 135 // the frame (that is done below). | 135 // the frame (that is done below). |
| 136 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 136 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| (...skipping 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4795 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4795 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4796 Assembler::target_address_at(call_target_address, | 4796 Assembler::target_address_at(call_target_address, |
| 4797 unoptimized_code)); | 4797 unoptimized_code)); |
| 4798 return OSR_AFTER_STACK_CHECK; | 4798 return OSR_AFTER_STACK_CHECK; |
| 4799 } | 4799 } |
| 4800 | 4800 |
| 4801 | 4801 |
| 4802 } } // namespace v8::internal | 4802 } } // namespace v8::internal |
| 4803 | 4803 |
| 4804 #endif // V8_TARGET_ARCH_X87 | 4804 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |