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

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: Fix gcc error Created 5 years, 1 month 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-generator.cc ('k') | src/interpreter/interpreter.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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V(Div, OperandType::kReg8) \ 80 V(Div, OperandType::kReg8) \
81 V(Mod, OperandType::kReg8) \ 81 V(Mod, OperandType::kReg8) \
82 V(BitwiseOr, OperandType::kReg8) \ 82 V(BitwiseOr, OperandType::kReg8) \
83 V(BitwiseXor, OperandType::kReg8) \ 83 V(BitwiseXor, OperandType::kReg8) \
84 V(BitwiseAnd, OperandType::kReg8) \ 84 V(BitwiseAnd, OperandType::kReg8) \
85 V(ShiftLeft, OperandType::kReg8) \ 85 V(ShiftLeft, OperandType::kReg8) \
86 V(ShiftRight, OperandType::kReg8) \ 86 V(ShiftRight, OperandType::kReg8) \
87 V(ShiftRightLogical, OperandType::kReg8) \ 87 V(ShiftRightLogical, OperandType::kReg8) \
88 \ 88 \
89 /* Unary Operators */ \ 89 /* Unary Operators */ \
90 V(Inc, OperandType::kNone) \
91 V(Dec, OperandType::kNone) \
90 V(LogicalNot, OperandType::kNone) \ 92 V(LogicalNot, OperandType::kNone) \
91 V(TypeOf, OperandType::kNone) \ 93 V(TypeOf, OperandType::kNone) \
92 \ 94 \
93 /* Call operations */ \ 95 /* Call operations */ \
94 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ 96 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \
95 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ 97 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \
96 OperandType::kCount8) \ 98 OperandType::kCount8) \
97 \ 99 \
98 /* New operator */ \ 100 /* New operator */ \
99 V(New, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ 101 V(New, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \
100 \ 102 \
101 /* Test Operators */ \ 103 /* Test Operators */ \
102 V(TestEqual, OperandType::kReg8) \ 104 V(TestEqual, OperandType::kReg8) \
103 V(TestNotEqual, OperandType::kReg8) \ 105 V(TestNotEqual, OperandType::kReg8) \
104 V(TestEqualStrict, OperandType::kReg8) \ 106 V(TestEqualStrict, OperandType::kReg8) \
105 V(TestNotEqualStrict, OperandType::kReg8) \ 107 V(TestNotEqualStrict, OperandType::kReg8) \
106 V(TestLessThan, OperandType::kReg8) \ 108 V(TestLessThan, OperandType::kReg8) \
107 V(TestGreaterThan, OperandType::kReg8) \ 109 V(TestGreaterThan, OperandType::kReg8) \
108 V(TestLessThanOrEqual, OperandType::kReg8) \ 110 V(TestLessThanOrEqual, OperandType::kReg8) \
109 V(TestGreaterThanOrEqual, OperandType::kReg8) \ 111 V(TestGreaterThanOrEqual, OperandType::kReg8) \
110 V(TestInstanceOf, OperandType::kReg8) \ 112 V(TestInstanceOf, OperandType::kReg8) \
111 V(TestIn, OperandType::kReg8) \ 113 V(TestIn, OperandType::kReg8) \
112 \ 114 \
113 /* Cast operators */ \ 115 /* Cast operators */ \
114 V(ToBoolean, OperandType::kNone) \ 116 V(ToBoolean, OperandType::kNone) \
115 V(ToName, OperandType::kNone) \ 117 V(ToName, OperandType::kNone) \
118 V(ToNumber, OperandType::kNone) \
116 \ 119 \
117 /* Literals */ \ 120 /* Literals */ \
118 V(CreateRegExpLiteral, OperandType::kIdx8, OperandType::kReg8) \ 121 V(CreateRegExpLiteral, OperandType::kIdx8, OperandType::kReg8) \
119 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \ 122 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \
120 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \ 123 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \
121 \ 124 \
122 /* Closure allocation */ \ 125 /* Closure allocation */ \
123 V(CreateClosure, OperandType::kImm8) \ 126 V(CreateClosure, OperandType::kImm8) \
124 \ 127 \
125 /* Control Flow */ \ 128 /* Control Flow */ \
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 298
296 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 299 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
297 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 300 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
298 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 301 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
299 302
300 } // namespace interpreter 303 } // namespace interpreter
301 } // namespace internal 304 } // namespace internal
302 } // namespace v8 305 } // namespace v8
303 306
304 #endif // V8_INTERPRETER_BYTECODES_H_ 307 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698