| 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); | 244 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); |
| 245 | 245 |
| 246 __ bind(&non_adaptor_frame); | 246 __ bind(&non_adaptor_frame); |
| 247 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), | 247 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), |
| 248 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); | 248 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); |
| 249 | 249 |
| 250 Label non_construct_frame, done; | 250 Label non_construct_frame, done; |
| 251 __ j(not_equal, &non_construct_frame); | 251 __ j(not_equal, &non_construct_frame); |
| 252 | 252 |
| 253 // Construct frame | 253 // Construct frame |
| 254 __ mov(eax, | 254 __ mov(eax, Operand(eax, ConstructFrameConstants::kNewTargetOffset)); |
| 255 Operand(eax, ConstructFrameConstants::kOriginalConstructorOffset)); | |
| 256 __ jmp(&done); | 255 __ jmp(&done); |
| 257 | 256 |
| 258 // Non-construct frame | 257 // Non-construct frame |
| 259 __ bind(&non_construct_frame); | 258 __ bind(&non_construct_frame); |
| 260 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); | 259 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); |
| 261 | 260 |
| 262 __ bind(&done); | 261 __ bind(&done); |
| 263 SetVar(new_target_var, eax, ebx, edx); | 262 SetVar(new_target_var, eax, ebx, edx); |
| 264 } | 263 } |
| 265 | 264 |
| (...skipping 4686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4952 Assembler::target_address_at(call_target_address, | 4951 Assembler::target_address_at(call_target_address, |
| 4953 unoptimized_code)); | 4952 unoptimized_code)); |
| 4954 return OSR_AFTER_STACK_CHECK; | 4953 return OSR_AFTER_STACK_CHECK; |
| 4955 } | 4954 } |
| 4956 | 4955 |
| 4957 | 4956 |
| 4958 } // namespace internal | 4957 } // namespace internal |
| 4959 } // namespace v8 | 4958 } // namespace v8 |
| 4960 | 4959 |
| 4961 #endif // V8_TARGET_ARCH_X87 | 4960 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |