| 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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 901 |
| 902 // TODO(rmcilroy): List of things not currently dealt with here but done in | 902 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 903 // fullcodegen's prologue: | 903 // fullcodegen's prologue: |
| 904 // - Support profiler (specifically profiling_counter). | 904 // - Support profiler (specifically profiling_counter). |
| 905 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 905 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
| 906 // - Allow simulator stop operations if FLAG_stop_at is set. | 906 // - Allow simulator stop operations if FLAG_stop_at is set. |
| 907 // - Deal with sloppy mode functions which need to replace the | 907 // - Deal with sloppy mode functions which need to replace the |
| 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 // - Supporting FLAG_trace. | |
| 912 // | |
| 913 // The following items are also not done here, and will probably be done using | |
| 914 // explicit bytecodes instead: | |
| 915 // - Allocating a new local context if applicable. | |
| 916 // - Setting up a local binding to the this function, which is used in | |
| 917 // derived constructors with super calls. | |
| 918 // - Setting new.target if required. | |
| 919 // - Dealing with REST parameters (only if | |
| 920 // https://codereview.chromium.org/1235153006 doesn't land by then). | |
| 921 // - Dealing with argument objects. | |
| 922 | 911 |
| 923 // Perform stack guard check. | 912 // Perform stack guard check. |
| 924 { | 913 { |
| 925 Label ok; | 914 Label ok; |
| 926 __ LoadRoot(r0, Heap::kStackLimitRootIndex); | 915 __ LoadRoot(r0, Heap::kStackLimitRootIndex); |
| 927 __ cmp(sp, r0); | 916 __ cmp(sp, r0); |
| 928 __ bge(&ok); | 917 __ bge(&ok); |
| 929 __ CallRuntime(Runtime::kStackGuard, 0); | 918 __ CallRuntime(Runtime::kStackGuard, 0); |
| 930 __ bind(&ok); | 919 __ bind(&ok); |
| 931 } | 920 } |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1952 __ bkpt(0); | 1941 __ bkpt(0); |
| 1953 } | 1942 } |
| 1954 } | 1943 } |
| 1955 | 1944 |
| 1956 | 1945 |
| 1957 #undef __ | 1946 #undef __ |
| 1958 } // namespace internal | 1947 } // namespace internal |
| 1959 } // namespace v8 | 1948 } // namespace v8 |
| 1960 | 1949 |
| 1961 #endif // V8_TARGET_ARCH_PPC | 1950 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |