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

Side by Side Diff: src/compiler/instruction.h

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/instruction-codes.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 return arch_opcode() == ArchOpcode::kArchDeoptimize || 816 return arch_opcode() == ArchOpcode::kArchDeoptimize ||
817 FlagsModeField::decode(opcode()) == kFlags_deoptimize; 817 FlagsModeField::decode(opcode()) == kFlags_deoptimize;
818 } 818 }
819 819
820 bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; } 820 bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; }
821 bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; } 821 bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; }
822 bool IsTailCall() const { 822 bool IsTailCall() const {
823 return arch_opcode() == ArchOpcode::kArchTailCallCodeObject || 823 return arch_opcode() == ArchOpcode::kArchTailCallCodeObject ||
824 arch_opcode() == ArchOpcode::kArchTailCallCodeObjectFromJSFunction || 824 arch_opcode() == ArchOpcode::kArchTailCallCodeObjectFromJSFunction ||
825 arch_opcode() == ArchOpcode::kArchTailCallJSFunction || 825 arch_opcode() == ArchOpcode::kArchTailCallJSFunction ||
826 arch_opcode() == ArchOpcode::kArchTailCallJSFunctionFromJSFunction; 826 arch_opcode() == ArchOpcode::kArchTailCallJSFunctionFromJSFunction ||
827 arch_opcode() == ArchOpcode::kArchTailCallAddress;
827 } 828 }
828 bool IsThrow() const { 829 bool IsThrow() const {
829 return arch_opcode() == ArchOpcode::kArchThrowTerminator; 830 return arch_opcode() == ArchOpcode::kArchThrowTerminator;
830 } 831 }
831 832
832 enum GapPosition { 833 enum GapPosition {
833 START, 834 START,
834 END, 835 END,
835 FIRST_GAP_POSITION = START, 836 FIRST_GAP_POSITION = START,
836 LAST_GAP_POSITION = END 837 LAST_GAP_POSITION = END
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 1414
1414 1415
1415 std::ostream& operator<<(std::ostream& os, 1416 std::ostream& operator<<(std::ostream& os,
1416 const PrintableInstructionSequence& code); 1417 const PrintableInstructionSequence& code);
1417 1418
1418 } // namespace compiler 1419 } // namespace compiler
1419 } // namespace internal 1420 } // namespace internal
1420 } // namespace v8 1421 } // namespace v8
1421 1422
1422 #endif // V8_COMPILER_INSTRUCTION_H_ 1423 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698