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

Side by Side Diff: src/ppc/full-codegen-ppc.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/ppc/frames-ppc.h ('k') | src/x64/frames-x64.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 __ bne(&skip); 269 __ bne(&skip);
270 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset)); 270 __ LoadP(r5, MemOperand(r5, StandardFrameConstants::kCallerFPOffset));
271 __ bind(&skip); 271 __ bind(&skip);
272 272
273 // Check the marker in the calling frame. 273 // Check the marker in the calling frame.
274 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset)); 274 __ LoadP(r4, MemOperand(r5, StandardFrameConstants::kMarkerOffset));
275 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0); 275 __ CmpSmiLiteral(r4, Smi::FromInt(StackFrame::CONSTRUCT), r0);
276 Label non_construct_frame, done; 276 Label non_construct_frame, done;
277 277
278 __ bne(&non_construct_frame); 278 __ bne(&non_construct_frame);
279 __ LoadP(r3, MemOperand(r5, StandardFrameConstants::kExpressionsOffset - 279 __ LoadP(r3, MemOperand(
280 2 * kPointerSize)); 280 r5, ConstructFrameConstants::kOriginalConstructorOffset));
281 __ b(&done); 281 __ b(&done);
282 282
283 __ bind(&non_construct_frame); 283 __ bind(&non_construct_frame);
284 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); 284 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex);
285 __ bind(&done); 285 __ bind(&done);
286 286
287 SetVar(new_target_var, r3, r5, r6); 287 SetVar(new_target_var, r3, r5, r6);
288 } 288 }
289 289
290 // Possibly allocate RestParameters 290 // Possibly allocate RestParameters
(...skipping 5300 matching lines...) Expand 10 before | Expand all | Expand 10 after
5591 return ON_STACK_REPLACEMENT; 5591 return ON_STACK_REPLACEMENT;
5592 } 5592 }
5593 5593
5594 DCHECK(interrupt_address == 5594 DCHECK(interrupt_address ==
5595 isolate->builtins()->OsrAfterStackCheck()->entry()); 5595 isolate->builtins()->OsrAfterStackCheck()->entry());
5596 return OSR_AFTER_STACK_CHECK; 5596 return OSR_AFTER_STACK_CHECK;
5597 } 5597 }
5598 } // namespace internal 5598 } // namespace internal
5599 } // namespace v8 5599 } // namespace v8
5600 #endif // V8_TARGET_ARCH_PPC 5600 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/frames-ppc.h ('k') | src/x64/frames-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698