Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.cc

Issue 1442643002: [turbofan] Rename "original constructor" to "new target". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698