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