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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset)); 261 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset));
262 __ bind(&skip); 262 __ bind(&skip);
263 263
264 // Check the marker in the calling frame. 264 // Check the marker in the calling frame.
265 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset)); 265 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset));
266 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0); 266 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0);
267 Label non_construct_frame, done; 267 Label non_construct_frame, done;
268 function_in_register_r4 = false; 268 function_in_register_r4 = false;
269 269
270 __ bne(&non_construct_frame); 270 __ bne(&non_construct_frame);
271 __ LoadP(r3, MemOperand( 271 __ LoadP(r3, MemOperand(r5, ConstructFrameConstants::kNewTargetOffset));
272 r5, ConstructFrameConstants::kOriginalConstructorOffset));
273 __ b(&done); 272 __ b(&done);
274 273
275 __ bind(&non_construct_frame); 274 __ bind(&non_construct_frame);
276 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); 275 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex);
277 __ bind(&done); 276 __ bind(&done);
278 277
279 SetVar(new_target_var, r3, r5, r6); 278 SetVar(new_target_var, r3, r5, r6);
280 } 279 }
281 280
282 Variable* arguments = scope()->arguments(); 281 Variable* arguments = scope()->arguments();
(...skipping 4759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5042 return ON_STACK_REPLACEMENT; 5041 return ON_STACK_REPLACEMENT;
5043 } 5042 }
5044 5043
5045 DCHECK(interrupt_address == 5044 DCHECK(interrupt_address ==
5046 isolate->builtins()->OsrAfterStackCheck()->entry()); 5045 isolate->builtins()->OsrAfterStackCheck()->entry());
5047 return OSR_AFTER_STACK_CHECK; 5046 return OSR_AFTER_STACK_CHECK;
5048 } 5047 }
5049 } // namespace internal 5048 } // namespace internal
5050 } // namespace v8 5049 } // namespace v8
5051 #endif // V8_TARGET_ARCH_PPC 5050 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698