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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 __ bind(&loop_check); | 635 __ bind(&loop_check); |
636 __ sub(ebx, Immediate(kPointerSize)); | 636 __ sub(ebx, Immediate(kPointerSize)); |
637 __ j(greater_equal, &loop_header); | 637 __ j(greater_equal, &loop_header); |
638 } | 638 } |
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 | |
646 // receiver with the global proxy when called as functions (without an | |
647 // explicit receiver object). | |
648 // - Code aging of the BytecodeArray object. | 645 // - Code aging of the BytecodeArray object. |
649 | 646 |
650 // Perform stack guard check. | 647 // Perform stack guard check. |
651 { | 648 { |
652 Label ok; | 649 Label ok; |
653 ExternalReference stack_limit = | 650 ExternalReference stack_limit = |
654 ExternalReference::address_of_stack_limit(masm->isolate()); | 651 ExternalReference::address_of_stack_limit(masm->isolate()); |
655 __ cmp(esp, Operand::StaticVariable(stack_limit)); | 652 __ cmp(esp, Operand::StaticVariable(stack_limit)); |
656 __ j(above_equal, &ok); | 653 __ j(above_equal, &ok); |
657 __ push(kInterpreterBytecodeArrayRegister); | 654 __ push(kInterpreterBytecodeArrayRegister); |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 | 1934 |
1938 __ bind(&ok); | 1935 __ bind(&ok); |
1939 __ ret(0); | 1936 __ ret(0); |
1940 } | 1937 } |
1941 | 1938 |
1942 #undef __ | 1939 #undef __ |
1943 } // namespace internal | 1940 } // namespace internal |
1944 } // namespace v8 | 1941 } // namespace v8 |
1945 | 1942 |
1946 #endif // V8_TARGET_ARCH_IA32 | 1943 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |