| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 __ movp(rax, Operand(rax, StandardFrameConstants::kCallerFPOffset)); | 243 __ movp(rax, Operand(rax, StandardFrameConstants::kCallerFPOffset)); |
| 244 | 244 |
| 245 __ bind(&non_adaptor_frame); | 245 __ bind(&non_adaptor_frame); |
| 246 __ Cmp(Operand(rax, StandardFrameConstants::kMarkerOffset), | 246 __ Cmp(Operand(rax, StandardFrameConstants::kMarkerOffset), |
| 247 Smi::FromInt(StackFrame::CONSTRUCT)); | 247 Smi::FromInt(StackFrame::CONSTRUCT)); |
| 248 | 248 |
| 249 Label non_construct_frame, done; | 249 Label non_construct_frame, done; |
| 250 __ j(not_equal, &non_construct_frame); | 250 __ j(not_equal, &non_construct_frame); |
| 251 | 251 |
| 252 // Construct frame | 252 // Construct frame |
| 253 __ movp(rax, | 253 __ movp(rax, Operand(rax, ConstructFrameConstants::kNewTargetOffset)); |
| 254 Operand(rax, ConstructFrameConstants::kOriginalConstructorOffset)); | |
| 255 __ jmp(&done); | 254 __ jmp(&done); |
| 256 | 255 |
| 257 // Non-construct frame | 256 // Non-construct frame |
| 258 __ bind(&non_construct_frame); | 257 __ bind(&non_construct_frame); |
| 259 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); | 258 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); |
| 260 | 259 |
| 261 __ bind(&done); | 260 __ bind(&done); |
| 262 SetVar(new_target_var, rax, rbx, rdx); | 261 SetVar(new_target_var, rax, rbx, rdx); |
| 263 } | 262 } |
| 264 | 263 |
| (...skipping 4711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4976 Assembler::target_address_at(call_target_address, | 4975 Assembler::target_address_at(call_target_address, |
| 4977 unoptimized_code)); | 4976 unoptimized_code)); |
| 4978 return OSR_AFTER_STACK_CHECK; | 4977 return OSR_AFTER_STACK_CHECK; |
| 4979 } | 4978 } |
| 4980 | 4979 |
| 4981 | 4980 |
| 4982 } // namespace internal | 4981 } // namespace internal |
| 4983 } // namespace v8 | 4982 } // namespace v8 |
| 4984 | 4983 |
| 4985 #endif // V8_TARGET_ARCH_X64 | 4984 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |