OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |