| 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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 709 | 709 | 
| 710   // TODO(rmcilroy): List of things not currently dealt with here but done in | 710   // TODO(rmcilroy): List of things not currently dealt with here but done in | 
| 711   // fullcodegen's prologue: | 711   // fullcodegen's prologue: | 
| 712   //  - Support profiler (specifically profiling_counter). | 712   //  - Support profiler (specifically profiling_counter). | 
| 713   //  - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 713   //  - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 
| 714   //  - Allow simulator stop operations if FLAG_stop_at is set. | 714   //  - Allow simulator stop operations if FLAG_stop_at is set. | 
| 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   //  - Supporting FLAG_trace. |  | 
| 720   // |  | 
| 721   // The following items are also not done here, and will probably be done using |  | 
| 722   // explicit bytecodes instead: |  | 
| 723   //  - Allocating a new local context if applicable. |  | 
| 724   //  - Setting up a local binding to the this function, which is used in |  | 
| 725   //    derived constructors with super calls. |  | 
| 726   //  - Setting new.target if required. |  | 
| 727   //  - Dealing with REST parameters (only if |  | 
| 728   //    https://codereview.chromium.org/1235153006 doesn't land by then). |  | 
| 729   //  - Dealing with argument objects. |  | 
| 730 | 719 | 
| 731   // Perform stack guard check. | 720   // Perform stack guard check. | 
| 732   { | 721   { | 
| 733     Label ok; | 722     Label ok; | 
| 734     __ CompareRoot(rsp, Heap::kStackLimitRootIndex); | 723     __ CompareRoot(rsp, Heap::kStackLimitRootIndex); | 
| 735     __ j(above_equal, &ok, Label::kNear); | 724     __ j(above_equal, &ok, Label::kNear); | 
| 736     __ CallRuntime(Runtime::kStackGuard, 0); | 725     __ CallRuntime(Runtime::kStackGuard, 0); | 
| 737     __ bind(&ok); | 726     __ bind(&ok); | 
| 738   } | 727   } | 
| 739 | 728 | 
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1978   __ ret(0); | 1967   __ ret(0); | 
| 1979 } | 1968 } | 
| 1980 | 1969 | 
| 1981 | 1970 | 
| 1982 #undef __ | 1971 #undef __ | 
| 1983 | 1972 | 
| 1984 }  // namespace internal | 1973 }  // namespace internal | 
| 1985 }  // namespace v8 | 1974 }  // namespace v8 | 
| 1986 | 1975 | 
| 1987 #endif  // V8_TARGET_ARCH_X64 | 1976 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|