| 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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 // receiver with the global proxy when called as functions (without an | 908 // receiver with the global proxy when called as functions (without an |
| 909 // explicit receiver object). | 909 // explicit receiver object). |
| 910 // - Code aging of the BytecodeArray object. | 910 // - Code aging of the BytecodeArray object. |
| 911 | 911 |
| 912 // Perform stack guard check. | 912 // Perform stack guard check. |
| 913 { | 913 { |
| 914 Label ok; | 914 Label ok; |
| 915 __ LoadRoot(r0, Heap::kStackLimitRootIndex); | 915 __ LoadRoot(r0, Heap::kStackLimitRootIndex); |
| 916 __ cmp(sp, r0); | 916 __ cmp(sp, r0); |
| 917 __ bge(&ok); | 917 __ bge(&ok); |
| 918 __ push(kInterpreterBytecodeArrayRegister); |
| 918 __ CallRuntime(Runtime::kStackGuard, 0); | 919 __ CallRuntime(Runtime::kStackGuard, 0); |
| 920 __ pop(kInterpreterBytecodeArrayRegister); |
| 919 __ bind(&ok); | 921 __ bind(&ok); |
| 920 } | 922 } |
| 921 | 923 |
| 922 // Load accumulator, register file, bytecode offset, dispatch table into | 924 // Load accumulator, register file, bytecode offset, dispatch table into |
| 923 // registers. | 925 // registers. |
| 924 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 926 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 925 __ subi( | 927 __ subi( |
| 926 kInterpreterRegisterFileRegister, fp, | 928 kInterpreterRegisterFileRegister, fp, |
| 927 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); | 929 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 928 __ mov(kInterpreterBytecodeOffsetRegister, | 930 __ mov(kInterpreterBytecodeOffsetRegister, |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1941 __ bkpt(0); | 1943 __ bkpt(0); |
| 1942 } | 1944 } |
| 1943 } | 1945 } |
| 1944 | 1946 |
| 1945 | 1947 |
| 1946 #undef __ | 1948 #undef __ |
| 1947 } // namespace internal | 1949 } // namespace internal |
| 1948 } // namespace v8 | 1950 } // namespace v8 |
| 1949 | 1951 |
| 1950 #endif // V8_TARGET_ARCH_PPC | 1952 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |