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

Side by Side Diff: src/mips/full-codegen-mips.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/mips/frames-mips.h ('k') | src/mips64/frames-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 __ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); 274 __ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset));
275 275
276 // Check the marker in the calling frame. 276 // Check the marker in the calling frame.
277 __ bind(&check_frame_marker); 277 __ bind(&check_frame_marker);
278 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); 278 __ lw(a1, MemOperand(a2, StandardFrameConstants::kMarkerOffset));
279 279
280 Label non_construct_frame, done; 280 Label non_construct_frame, done;
281 __ Branch(&non_construct_frame, ne, a1, 281 __ Branch(&non_construct_frame, ne, a1,
282 Operand(Smi::FromInt(StackFrame::CONSTRUCT))); 282 Operand(Smi::FromInt(StackFrame::CONSTRUCT)));
283 283
284 __ lw(v0, MemOperand(a2, StandardFrameConstants::kExpressionsOffset - 284 __ lw(v0,
285 2 * kPointerSize)); 285 MemOperand(a2, ConstructFrameConstants::kOriginalConstructorOffset));
286 __ Branch(&done); 286 __ Branch(&done);
287 287
288 __ bind(&non_construct_frame); 288 __ bind(&non_construct_frame);
289 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); 289 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
290 __ bind(&done); 290 __ bind(&done);
291 291
292 SetVar(new_target_var, v0, a2, a3); 292 SetVar(new_target_var, v0, a2, a3);
293 } 293 }
294 294
295 // Possibly allocate RestParameters 295 // Possibly allocate RestParameters
(...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after
5572 reinterpret_cast<uint32_t>( 5572 reinterpret_cast<uint32_t>(
5573 isolate->builtins()->OsrAfterStackCheck()->entry())); 5573 isolate->builtins()->OsrAfterStackCheck()->entry()));
5574 return OSR_AFTER_STACK_CHECK; 5574 return OSR_AFTER_STACK_CHECK;
5575 } 5575 }
5576 5576
5577 5577
5578 } // namespace internal 5578 } // namespace internal
5579 } // namespace v8 5579 } // namespace v8
5580 5580
5581 #endif // V8_TARGET_ARCH_MIPS 5581 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips64/frames-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698