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

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

Issue 1416623003: [Interpreter] Add support for for count operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(Div, OperandType::kReg8) \ 79 V(Div, OperandType::kReg8) \
80 V(Mod, OperandType::kReg8) \ 80 V(Mod, OperandType::kReg8) \
81 V(BitwiseOr, OperandType::kReg8) \ 81 V(BitwiseOr, OperandType::kReg8) \
82 V(BitwiseXor, OperandType::kReg8) \ 82 V(BitwiseXor, OperandType::kReg8) \
83 V(BitwiseAnd, OperandType::kReg8) \ 83 V(BitwiseAnd, OperandType::kReg8) \
84 V(ShiftLeft, OperandType::kReg8) \ 84 V(ShiftLeft, OperandType::kReg8) \
85 V(ShiftRight, OperandType::kReg8) \ 85 V(ShiftRight, OperandType::kReg8) \
86 V(ShiftRightLogical, OperandType::kReg8) \ 86 V(ShiftRightLogical, OperandType::kReg8) \
87 \ 87 \
88 /* Unary Operators */ \ 88 /* Unary Operators */ \
89 V(Inc, OperandType::kNone) \
90 V(Dec, OperandType::kNone) \
89 V(LogicalNot, OperandType::kNone) \ 91 V(LogicalNot, OperandType::kNone) \
90 V(TypeOf, OperandType::kNone) \ 92 V(TypeOf, OperandType::kNone) \
91 \ 93 \
92 /* Call operations */ \ 94 /* Call operations */ \
93 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ 95 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \
94 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ 96 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \
95 OperandType::kCount8) \ 97 OperandType::kCount8) \
96 \ 98 \
97 /* New operator */ \ 99 /* New operator */ \
98 V(New, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ 100 V(New, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \
99 \ 101 \
100 /* Test Operators */ \ 102 /* Test Operators */ \
101 V(TestEqual, OperandType::kReg8) \ 103 V(TestEqual, OperandType::kReg8) \
102 V(TestNotEqual, OperandType::kReg8) \ 104 V(TestNotEqual, OperandType::kReg8) \
103 V(TestEqualStrict, OperandType::kReg8) \ 105 V(TestEqualStrict, OperandType::kReg8) \
104 V(TestNotEqualStrict, OperandType::kReg8) \ 106 V(TestNotEqualStrict, OperandType::kReg8) \
105 V(TestLessThan, OperandType::kReg8) \ 107 V(TestLessThan, OperandType::kReg8) \
106 V(TestGreaterThan, OperandType::kReg8) \ 108 V(TestGreaterThan, OperandType::kReg8) \
107 V(TestLessThanOrEqual, OperandType::kReg8) \ 109 V(TestLessThanOrEqual, OperandType::kReg8) \
108 V(TestGreaterThanOrEqual, OperandType::kReg8) \ 110 V(TestGreaterThanOrEqual, OperandType::kReg8) \
109 V(TestInstanceOf, OperandType::kReg8) \ 111 V(TestInstanceOf, OperandType::kReg8) \
110 V(TestIn, OperandType::kReg8) \ 112 V(TestIn, OperandType::kReg8) \
111 \ 113 \
112 /* Cast operators */ \ 114 /* Cast operators */ \
113 V(ToBoolean, OperandType::kNone) \ 115 V(ToBoolean, OperandType::kNone) \
114 V(ToName, OperandType::kNone) \ 116 V(ToName, OperandType::kNone) \
117 V(ToNumber, OperandType::kNone) \
115 \ 118 \
116 /* Literals */ \ 119 /* Literals */ \
117 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \ 120 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \
118 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \ 121 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \
119 \ 122 \
120 /* Closure allocation */ \ 123 /* Closure allocation */ \
121 V(CreateClosure, OperandType::kImm8) \ 124 V(CreateClosure, OperandType::kImm8) \
122 \ 125 \
123 /* Control Flow */ \ 126 /* Control Flow */ \
124 V(Jump, OperandType::kImm8) \ 127 V(Jump, OperandType::kImm8) \
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 285
283 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 286 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
284 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 287 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
285 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 288 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
286 289
287 } // namespace interpreter 290 } // namespace interpreter
288 } // namespace internal 291 } // namespace internal
289 } // namespace v8 292 } // namespace v8
290 293
291 #endif // V8_INTERPRETER_BYTECODES_H_ 294 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698