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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 kInterpreterBytecodeOffsetRegister, | 780 kInterpreterBytecodeOffsetRegister, |
781 Operand(kInterpreterRegisterFileRegister, | 781 Operand(kInterpreterRegisterFileRegister, |
782 InterpreterFrameConstants::kBytecodeOffsetFromRegisterPointer)); | 782 InterpreterFrameConstants::kBytecodeOffsetFromRegisterPointer)); |
783 __ SmiUntag(kInterpreterBytecodeOffsetRegister); | 783 __ SmiUntag(kInterpreterBytecodeOffsetRegister); |
784 | 784 |
785 // Push dispatch table as a stack located parameter to the bytecode handler - | 785 // Push dispatch table as a stack located parameter to the bytecode handler - |
786 // overwrite the state slot (we don't use these for interpreter deopts). | 786 // overwrite the state slot (we don't use these for interpreter deopts). |
787 __ LoadRoot(ebx, Heap::kInterpreterTableRootIndex); | 787 __ LoadRoot(ebx, Heap::kInterpreterTableRootIndex); |
788 __ add(ebx, Immediate(FixedArray::kHeaderSize - kHeapObjectTag)); | 788 __ add(ebx, Immediate(FixedArray::kHeaderSize - kHeapObjectTag)); |
789 DCHECK_EQ(-1, kInterpreterDispatchTableSpillSlot); | 789 DCHECK_EQ(-1, kInterpreterDispatchTableSpillSlot); |
790 __ mov(ebx, Operand(esp, -2 * kPointerSize)); | 790 __ mov(Operand(esp, kPointerSize), ebx); |
791 | 791 |
792 // Dispatch to the target bytecode. | 792 // Dispatch to the target bytecode. |
793 __ movzx_b(esi, Operand(kInterpreterBytecodeArrayRegister, | 793 __ movzx_b(esi, Operand(kInterpreterBytecodeArrayRegister, |
794 kInterpreterBytecodeOffsetRegister, times_1, 0)); | 794 kInterpreterBytecodeOffsetRegister, times_1, 0)); |
795 __ mov(ebx, Operand(ebx, esi, times_pointer_size, 0)); | 795 __ mov(ebx, Operand(ebx, esi, times_pointer_size, 0)); |
796 | 796 |
797 // Get the context from the frame. | 797 // Get the context from the frame. |
798 // TODO(rmcilroy): Update interpreter frame to expect current context at the | 798 // TODO(rmcilroy): Update interpreter frame to expect current context at the |
799 // context slot instead of the function context. | 799 // context slot instead of the function context. |
800 __ mov(kContextRegister, | 800 __ mov(kContextRegister, |
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 | 2372 |
2373 __ bind(&ok); | 2373 __ bind(&ok); |
2374 __ ret(0); | 2374 __ ret(0); |
2375 } | 2375 } |
2376 | 2376 |
2377 #undef __ | 2377 #undef __ |
2378 } // namespace internal | 2378 } // namespace internal |
2379 } // namespace v8 | 2379 } // namespace v8 |
2380 | 2380 |
2381 #endif // V8_TARGET_ARCH_IA32 | 2381 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |