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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Check the marker in the calling frame. 266 // Check the marker in the calling frame.
267 __ bind(&check_frame_marker); 267 __ bind(&check_frame_marker);
268 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); 268 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset));
269 function_in_register_a1 = false; 269 function_in_register_a1 = false;
270 270
271 Label non_construct_frame, done; 271 Label non_construct_frame, done;
272 __ Branch(&non_construct_frame, ne, a1, 272 __ Branch(&non_construct_frame, ne, a1,
273 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); 273 Operand(Smi::FromInt(StackFrame::CONSTRUCT)));
274 274
275 __ ld(v0, 275 __ ld(v0, MemOperand(a2, ConstructFrameConstants::kNewTargetOffset));
276 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset));
277 __ Branch(&done); 276 __ Branch(&done);
278 277
279 __ bind(&non_construct_frame); 278 __ bind(&non_construct_frame);
280 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); 279 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
281 __ bind(&done); 280 __ bind(&done);
282 281
283 SetVar(new_target_var, v0, a2, a3); 282 SetVar(new_target_var, v0, a2, a3);
284 } 283 }
285 284
286 Variable* arguments = scope()->arguments(); 285 Variable* arguments = scope()->arguments();
(...skipping 4776 matching lines...) Expand 10 before | Expand all | Expand 10 after
5063 reinterpret_cast<uint64_t>( 5062 reinterpret_cast<uint64_t>(
5064 isolate->builtins()->OsrAfterStackCheck()->entry())); 5063 isolate->builtins()->OsrAfterStackCheck()->entry()));
5065 return OSR_AFTER_STACK_CHECK; 5064 return OSR_AFTER_STACK_CHECK;
5066 } 5065 }
5067 5066
5068 5067
5069 } // namespace internal 5068 } // namespace internal
5070 } // namespace v8 5069 } // namespace v8
5071 5070
5072 #endif // V8_TARGET_ARCH_MIPS64 5071 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698