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_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 // - Deal with sloppy mode functions which need to replace the | 715 // - Deal with sloppy mode functions which need to replace the |
716 // receiver with the global proxy when called as functions (without an | 716 // receiver with the global proxy when called as functions (without an |
717 // explicit receiver object). | 717 // explicit receiver object). |
718 // - Code aging of the BytecodeArray object. | 718 // - Code aging of the BytecodeArray object. |
719 | 719 |
720 // Perform stack guard check. | 720 // Perform stack guard check. |
721 { | 721 { |
722 Label ok; | 722 Label ok; |
723 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); | 723 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
724 __ j(above_equal, &ok, Label::kNear); | 724 __ j(above_equal, &ok, Label::kNear); |
| 725 __ Push(kInterpreterBytecodeArrayRegister); |
725 __ CallRuntime(Runtime::kStackGuard, 0); | 726 __ CallRuntime(Runtime::kStackGuard, 0); |
| 727 __ Pop(kInterpreterBytecodeArrayRegister); |
726 __ bind(&ok); | 728 __ bind(&ok); |
727 } | 729 } |
728 | 730 |
729 // Load accumulator, register file, bytecode offset, dispatch table into | 731 // Load accumulator, register file, bytecode offset, dispatch table into |
730 // registers. | 732 // registers. |
731 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 733 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
732 __ movp(kInterpreterRegisterFileRegister, rbp); | 734 __ movp(kInterpreterRegisterFileRegister, rbp); |
733 __ subp( | 735 __ subp( |
734 kInterpreterRegisterFileRegister, | 736 kInterpreterRegisterFileRegister, |
735 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); | 737 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 __ ret(0); | 1969 __ ret(0); |
1968 } | 1970 } |
1969 | 1971 |
1970 | 1972 |
1971 #undef __ | 1973 #undef __ |
1972 | 1974 |
1973 } // namespace internal | 1975 } // namespace internal |
1974 } // namespace v8 | 1976 } // namespace v8 |
1975 | 1977 |
1976 #endif // V8_TARGET_ARCH_X64 | 1978 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |