| OLD | NEW |
| 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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 // - Deal with sloppy mode functions which need to replace the | 910 // - Deal with sloppy mode functions which need to replace the |
| 911 // receiver with the global proxy when called as functions (without an | 911 // receiver with the global proxy when called as functions (without an |
| 912 // explicit receiver object). | 912 // explicit receiver object). |
| 913 // - Code aging of the BytecodeArray object. | 913 // - Code aging of the BytecodeArray object. |
| 914 | 914 |
| 915 // Perform stack guard check. | 915 // Perform stack guard check. |
| 916 { | 916 { |
| 917 Label ok; | 917 Label ok; |
| 918 __ LoadRoot(at, Heap::kStackLimitRootIndex); | 918 __ LoadRoot(at, Heap::kStackLimitRootIndex); |
| 919 __ Branch(&ok, hs, sp, Operand(at)); | 919 __ Branch(&ok, hs, sp, Operand(at)); |
| 920 __ push(kInterpreterBytecodeArrayRegister); |
| 920 __ CallRuntime(Runtime::kStackGuard, 0); | 921 __ CallRuntime(Runtime::kStackGuard, 0); |
| 922 __ pop(kInterpreterBytecodeArrayRegister); |
| 921 __ bind(&ok); | 923 __ bind(&ok); |
| 922 } | 924 } |
| 923 | 925 |
| 924 // Load bytecode offset and dispatch table into registers. | 926 // Load bytecode offset and dispatch table into registers. |
| 925 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 927 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 926 __ Subu( | 928 __ Subu( |
| 927 kInterpreterRegisterFileRegister, fp, | 929 kInterpreterRegisterFileRegister, fp, |
| 928 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); | 930 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 929 __ li(kInterpreterBytecodeOffsetRegister, | 931 __ li(kInterpreterBytecodeOffsetRegister, |
| 930 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 932 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1927 } | 1929 } |
| 1928 } | 1930 } |
| 1929 | 1931 |
| 1930 | 1932 |
| 1931 #undef __ | 1933 #undef __ |
| 1932 | 1934 |
| 1933 } // namespace internal | 1935 } // namespace internal |
| 1934 } // namespace v8 | 1936 } // namespace v8 |
| 1935 | 1937 |
| 1936 #endif // V8_TARGET_ARCH_MIPS | 1938 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |