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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 1369123002: [Interpreter] Add interpreter support for compare ops and ToBoolean. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporate review feedback from mstarzinger and rmcilroy. Created 5 years, 2 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/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/interpreter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 /* Call operations. */ \ 61 /* Call operations. */ \
62 V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \ 62 V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \
63 \ 63 \
64 /* Test Operators */ \ 64 /* Test Operators */ \
65 V(TestEqual, OperandType::kReg) \ 65 V(TestEqual, OperandType::kReg) \
66 V(TestNotEqual, OperandType::kReg) \ 66 V(TestNotEqual, OperandType::kReg) \
67 V(TestEqualStrict, OperandType::kReg) \ 67 V(TestEqualStrict, OperandType::kReg) \
68 V(TestNotEqualStrict, OperandType::kReg) \ 68 V(TestNotEqualStrict, OperandType::kReg) \
69 V(TestLessThan, OperandType::kReg) \ 69 V(TestLessThan, OperandType::kReg) \
70 V(TestGreaterThan, OperandType::kReg) \ 70 V(TestGreaterThan, OperandType::kReg) \
71 V(TestLessThanEqual, OperandType::kReg) \ 71 V(TestLessThanOrEqual, OperandType::kReg) \
72 V(TestGreaterThanEqual, OperandType::kReg) \ 72 V(TestGreaterThanOrEqual, OperandType::kReg) \
73 V(TestInstanceOf, OperandType::kReg) \ 73 V(TestInstanceOf, OperandType::kReg) \
74 V(TestIn, OperandType::kReg) \ 74 V(TestIn, OperandType::kReg) \
75 \ 75 \
76 /* Cast operators */ \ 76 /* Cast operators */ \
77 V(ToBoolean, OperandType::kNone) \ 77 V(ToBoolean, OperandType::kNone) \
78 \ 78 \
79 /* Control Flow */ \ 79 /* Control Flow */ \
80 V(Jump, OperandType::kImm8) \ 80 V(Jump, OperandType::kImm8) \
81 V(JumpConstant, OperandType::kIdx) \ 81 V(JumpConstant, OperandType::kIdx) \
82 V(JumpIfTrue, OperandType::kImm8) \ 82 V(JumpIfTrue, OperandType::kImm8) \
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 }; 187 };
188 188
189 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 189 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
190 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 190 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
191 191
192 } // namespace interpreter 192 } // namespace interpreter
193 } // namespace internal 193 } // namespace internal
194 } // namespace v8 194 } // namespace v8
195 195
196 #endif // V8_INTERPRETER_BYTECODES_H_ 196 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698