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

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

Issue 1220223005: Cleanup frame description constant. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_graph-builder-new-target
Patch Set: Addressed comments. Created 5 years, 5 months 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/mips64/frames-mips64.h ('k') | src/ppc/frames-ppc.h » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 __ ld(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); 270 __ ld(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset));
271 271
272 // Check the marker in the calling frame. 272 // Check the marker in the calling frame.
273 __ bind(&check_frame_marker); 273 __ bind(&check_frame_marker);
274 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); 274 __ ld(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset));
275 275
276 Label non_construct_frame, done; 276 Label non_construct_frame, done;
277 __ Branch(&non_construct_frame, ne, a1, 277 __ Branch(&non_construct_frame, ne, a1,
278 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); 278 Operand(Smi::FromInt(StackFrame::CONSTRUCT)));
279 279
280 __ ld(v0, MemOperand(a2, StandardFrameConstants::kExpressionsOffset - 280 __ ld(v0,
281 2 * kPointerSize)); 281 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset));
282 __ Branch(&done); 282 __ Branch(&done);
283 283
284 __ bind(&non_construct_frame); 284 __ bind(&non_construct_frame);
285 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); 285 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
286 __ bind(&done); 286 __ bind(&done);
287 287
288 SetVar(new_target_var, v0, a2, a3); 288 SetVar(new_target_var, v0, a2, a3);
289 } 289 }
290 290
291 // Possibly allocate RestParameters 291 // Possibly allocate RestParameters
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after
5580 reinterpret_cast<uint64_t>( 5580 reinterpret_cast<uint64_t>(
5581 isolate->builtins()->OsrAfterStackCheck()->entry())); 5581 isolate->builtins()->OsrAfterStackCheck()->entry()));
5582 return OSR_AFTER_STACK_CHECK; 5582 return OSR_AFTER_STACK_CHECK;
5583 } 5583 }
5584 5584
5585 5585
5586 } // namespace internal 5586 } // namespace internal
5587 } // namespace v8 5587 } // namespace v8
5588 5588
5589 #endif // V8_TARGET_ARCH_MIPS64 5589 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/frames-mips64.h ('k') | src/ppc/frames-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698