Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/ia32/builtins-ia32.cc

Issue 1553123002: [Interpreter] Fix some issues in the non-x64 InterpreterNotifyDeoptimized builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_cctest
Patch Set: Rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698