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

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1596293003: Use default argument count for runtime function calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/macro-assembler-mips64.cc ('k') | src/ppc/macro-assembler-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 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/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 // Check the stack for overflow. We are not trying to catch interruptions 2107 // Check the stack for overflow. We are not trying to catch interruptions
2108 // (i.e. debug break and preemption) here, so check the "real stack 2108 // (i.e. debug break and preemption) here, so check the "real stack
2109 // limit". 2109 // limit".
2110 __ CompareRoot(sp, Heap::kRealStackLimitRootIndex); 2110 __ CompareRoot(sp, Heap::kRealStackLimitRootIndex);
2111 __ bgt(&done); // Signed comparison. 2111 __ bgt(&done); // Signed comparison.
2112 // Restore the stack pointer. 2112 // Restore the stack pointer.
2113 __ mr(sp, r9); 2113 __ mr(sp, r9);
2114 { 2114 {
2115 FrameScope scope(masm, StackFrame::MANUAL); 2115 FrameScope scope(masm, StackFrame::MANUAL);
2116 __ EnterFrame(StackFrame::INTERNAL); 2116 __ EnterFrame(StackFrame::INTERNAL);
2117 __ CallRuntime(Runtime::kThrowStackOverflow, 0); 2117 __ CallRuntime(Runtime::kThrowStackOverflow);
2118 } 2118 }
2119 __ bind(&done); 2119 __ bind(&done);
2120 } 2120 }
2121 2121
2122 // Relocate arguments down the stack. 2122 // Relocate arguments down the stack.
2123 // -- r3 : the number of arguments (not including the receiver) 2123 // -- r3 : the number of arguments (not including the receiver)
2124 // -- r9 : the previous stack pointer 2124 // -- r9 : the previous stack pointer
2125 // -- r10: the size of the [[BoundArguments]] 2125 // -- r10: the size of the [[BoundArguments]]
2126 { 2126 {
2127 Label skip, loop; 2127 Label skip, loop;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2519 __ bkpt(0); 2519 __ bkpt(0);
2520 } 2520 }
2521 } 2521 }
2522 2522
2523 2523
2524 #undef __ 2524 #undef __
2525 } // namespace internal 2525 } // namespace internal
2526 } // namespace v8 2526 } // namespace v8
2527 2527
2528 #endif // V8_TARGET_ARCH_PPC 2528 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698