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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); | 247 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); |
248 | 248 |
249 __ bind(&non_adaptor_frame); | 249 __ bind(&non_adaptor_frame); |
250 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), | 250 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), |
251 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); | 251 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); |
252 | 252 |
253 Label non_construct_frame, done; | 253 Label non_construct_frame, done; |
254 __ j(not_equal, &non_construct_frame); | 254 __ j(not_equal, &non_construct_frame); |
255 | 255 |
256 // Construct frame | 256 // Construct frame |
257 __ mov(eax, | 257 __ mov(eax, Operand(eax, ConstructFrameConstants::kNewTargetOffset)); |
258 Operand(eax, ConstructFrameConstants::kOriginalConstructorOffset)); | |
259 __ jmp(&done); | 258 __ jmp(&done); |
260 | 259 |
261 // Non-construct frame | 260 // Non-construct frame |
262 __ bind(&non_construct_frame); | 261 __ bind(&non_construct_frame); |
263 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); | 262 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); |
264 | 263 |
265 __ bind(&done); | 264 __ bind(&done); |
266 SetVar(new_target_var, eax, ebx, edx); | 265 SetVar(new_target_var, eax, ebx, edx); |
267 } | 266 } |
268 | 267 |
(...skipping 4691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4960 Assembler::target_address_at(call_target_address, | 4959 Assembler::target_address_at(call_target_address, |
4961 unoptimized_code)); | 4960 unoptimized_code)); |
4962 return OSR_AFTER_STACK_CHECK; | 4961 return OSR_AFTER_STACK_CHECK; |
4963 } | 4962 } |
4964 | 4963 |
4965 | 4964 |
4966 } // namespace internal | 4965 } // namespace internal |
4967 } // namespace v8 | 4966 } // namespace v8 |
4968 | 4967 |
4969 #endif // V8_TARGET_ARCH_IA32 | 4968 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |