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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 639 |
640 // TODO(rmcilroy): List of things not currently dealt with here but done in | 640 // TODO(rmcilroy): List of things not currently dealt with here but done in |
641 // fullcodegen's prologue: | 641 // fullcodegen's prologue: |
642 // - Support profiler (specifically profiling_counter). | 642 // - Support profiler (specifically profiling_counter). |
643 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 643 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
644 // - Allow simulator stop operations if FLAG_stop_at is set. | 644 // - Allow simulator stop operations if FLAG_stop_at is set. |
645 // - Deal with sloppy mode functions which need to replace the | 645 // - Deal with sloppy mode functions which need to replace the |
646 // receiver with the global proxy when called as functions (without an | 646 // receiver with the global proxy when called as functions (without an |
647 // explicit receiver object). | 647 // explicit receiver object). |
648 // - Code aging of the BytecodeArray object. | 648 // - Code aging of the BytecodeArray object. |
649 // - Supporting FLAG_trace. | |
650 // | |
651 // The following items are also not done here, and will probably be done using | |
652 // explicit bytecodes instead: | |
653 // - Allocating a new local context if applicable. | |
654 // - Setting up a local binding to the this function, which is used in | |
655 // derived constructors with super calls. | |
656 // - Setting new.target if required. | |
657 // - Dealing with REST parameters (only if | |
658 // https://codereview.chromium.org/1235153006 doesn't land by then). | |
659 // - Dealing with argument objects. | |
660 | 649 |
661 // Perform stack guard check. | 650 // Perform stack guard check. |
662 { | 651 { |
663 Label ok; | 652 Label ok; |
664 ExternalReference stack_limit = | 653 ExternalReference stack_limit = |
665 ExternalReference::address_of_stack_limit(masm->isolate()); | 654 ExternalReference::address_of_stack_limit(masm->isolate()); |
666 __ cmp(esp, Operand::StaticVariable(stack_limit)); | 655 __ cmp(esp, Operand::StaticVariable(stack_limit)); |
667 __ j(above_equal, &ok); | 656 __ j(above_equal, &ok); |
668 __ CallRuntime(Runtime::kStackGuard, 0); | 657 __ CallRuntime(Runtime::kStackGuard, 0); |
669 __ bind(&ok); | 658 __ bind(&ok); |
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 | 1898 |
1910 __ bind(&ok); | 1899 __ bind(&ok); |
1911 __ ret(0); | 1900 __ ret(0); |
1912 } | 1901 } |
1913 | 1902 |
1914 #undef __ | 1903 #undef __ |
1915 } // namespace internal | 1904 } // namespace internal |
1916 } // namespace v8 | 1905 } // namespace v8 |
1917 | 1906 |
1918 #endif // V8_TARGET_ARCH_IA32 | 1907 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |