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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 __ movp(rax, Operand(rax, StandardFrameConstants::kCallerFPOffset)); | 254 __ movp(rax, Operand(rax, StandardFrameConstants::kCallerFPOffset)); |
255 | 255 |
256 __ bind(&non_adaptor_frame); | 256 __ bind(&non_adaptor_frame); |
257 __ Cmp(Operand(rax, StandardFrameConstants::kMarkerOffset), | 257 __ Cmp(Operand(rax, StandardFrameConstants::kMarkerOffset), |
258 Smi::FromInt(StackFrame::CONSTRUCT)); | 258 Smi::FromInt(StackFrame::CONSTRUCT)); |
259 | 259 |
260 Label non_construct_frame, done; | 260 Label non_construct_frame, done; |
261 __ j(not_equal, &non_construct_frame); | 261 __ j(not_equal, &non_construct_frame); |
262 | 262 |
263 // Construct frame | 263 // Construct frame |
264 __ movp(rax, Operand(rax, StandardFrameConstants::kExpressionsOffset - | 264 __ movp(rax, |
265 2 * kPointerSize)); | 265 Operand(rax, ConstructFrameConstants::kOriginalConstructorOffset)); |
266 __ jmp(&done); | 266 __ jmp(&done); |
267 | 267 |
268 // Non-construct frame | 268 // Non-construct frame |
269 __ bind(&non_construct_frame); | 269 __ bind(&non_construct_frame); |
270 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); | 270 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); |
271 | 271 |
272 __ bind(&done); | 272 __ bind(&done); |
273 SetVar(new_target_var, rax, rbx, rdx); | 273 SetVar(new_target_var, rax, rbx, rdx); |
274 } | 274 } |
275 | 275 |
(...skipping 5233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5509 Assembler::target_address_at(call_target_address, | 5509 Assembler::target_address_at(call_target_address, |
5510 unoptimized_code)); | 5510 unoptimized_code)); |
5511 return OSR_AFTER_STACK_CHECK; | 5511 return OSR_AFTER_STACK_CHECK; |
5512 } | 5512 } |
5513 | 5513 |
5514 | 5514 |
5515 } // namespace internal | 5515 } // namespace internal |
5516 } // namespace v8 | 5516 } // namespace v8 |
5517 | 5517 |
5518 #endif // V8_TARGET_ARCH_X64 | 5518 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |