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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.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_X87 5 #if V8_TARGET_ARCH_X87
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); 244 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset));
245 245
246 __ bind(&non_adaptor_frame); 246 __ bind(&non_adaptor_frame);
247 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), 247 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset),
248 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); 248 Immediate(Smi::FromInt(StackFrame::CONSTRUCT)));
249 249
250 Label non_construct_frame, done; 250 Label non_construct_frame, done;
251 __ j(not_equal, &non_construct_frame); 251 __ j(not_equal, &non_construct_frame);
252 252
253 // Construct frame 253 // Construct frame
254 __ mov(eax, 254 __ mov(eax, Operand(eax, ConstructFrameConstants::kNewTargetOffset));
255 Operand(eax, ConstructFrameConstants::kOriginalConstructorOffset));
256 __ jmp(&done); 255 __ jmp(&done);
257 256
258 // Non-construct frame 257 // Non-construct frame
259 __ bind(&non_construct_frame); 258 __ bind(&non_construct_frame);
260 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); 259 __ mov(eax, Immediate(isolate()->factory()->undefined_value()));
261 260
262 __ bind(&done); 261 __ bind(&done);
263 SetVar(new_target_var, eax, ebx, edx); 262 SetVar(new_target_var, eax, ebx, edx);
264 } 263 }
265 264
(...skipping 4686 matching lines...) Expand 10 before | Expand all | Expand 10 after
4952 Assembler::target_address_at(call_target_address, 4951 Assembler::target_address_at(call_target_address,
4953 unoptimized_code)); 4952 unoptimized_code));
4954 return OSR_AFTER_STACK_CHECK; 4953 return OSR_AFTER_STACK_CHECK;
4955 } 4954 }
4956 4955
4957 4956
4958 } // namespace internal 4957 } // namespace internal
4959 } // namespace v8 4958 } // namespace v8
4960 4959
4961 #endif // V8_TARGET_ARCH_X87 4960 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698