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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); | 257 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); |
258 | 258 |
259 __ bind(&non_adaptor_frame); | 259 __ bind(&non_adaptor_frame); |
260 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), | 260 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), |
261 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); | 261 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); |
262 | 262 |
263 Label non_construct_frame, done; | 263 Label non_construct_frame, done; |
264 __ j(not_equal, &non_construct_frame); | 264 __ j(not_equal, &non_construct_frame); |
265 | 265 |
266 // Construct frame | 266 // Construct frame |
267 __ mov(eax, Operand(eax, StandardFrameConstants::kExpressionsOffset - | 267 __ mov(eax, |
268 2 * kPointerSize)); | 268 Operand(eax, ConstructFrameConstants::kOriginalConstructorOffset)); |
269 __ jmp(&done); | 269 __ jmp(&done); |
270 | 270 |
271 // Non-construct frame | 271 // Non-construct frame |
272 __ bind(&non_construct_frame); | 272 __ bind(&non_construct_frame); |
273 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); | 273 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); |
274 | 274 |
275 __ bind(&done); | 275 __ bind(&done); |
276 SetVar(new_target_var, eax, ebx, edx); | 276 SetVar(new_target_var, eax, ebx, edx); |
277 } | 277 } |
278 | 278 |
(...skipping 5209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5488 Assembler::target_address_at(call_target_address, | 5488 Assembler::target_address_at(call_target_address, |
5489 unoptimized_code)); | 5489 unoptimized_code)); |
5490 return OSR_AFTER_STACK_CHECK; | 5490 return OSR_AFTER_STACK_CHECK; |
5491 } | 5491 } |
5492 | 5492 |
5493 | 5493 |
5494 } // namespace internal | 5494 } // namespace internal |
5495 } // namespace v8 | 5495 } // namespace v8 |
5496 | 5496 |
5497 #endif // V8_TARGET_ARCH_IA32 | 5497 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |