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

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

Issue 1399773002: [Interpreter] Adds logical and, logical or and comma operators to interpreter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed formatting problems with the expected bytecode initialization 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-generator.cc ('k') | src/interpreter/bytecodes.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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 /* Closure allocation */ \ 117 /* Closure allocation */ \
118 V(CreateClosure, OperandType::kImm8) \ 118 V(CreateClosure, OperandType::kImm8) \
119 \ 119 \
120 /* Control Flow */ \ 120 /* Control Flow */ \
121 V(Jump, OperandType::kImm8) \ 121 V(Jump, OperandType::kImm8) \
122 V(JumpConstant, OperandType::kIdx8) \ 122 V(JumpConstant, OperandType::kIdx8) \
123 V(JumpIfTrue, OperandType::kImm8) \ 123 V(JumpIfTrue, OperandType::kImm8) \
124 V(JumpIfTrueConstant, OperandType::kIdx8) \ 124 V(JumpIfTrueConstant, OperandType::kIdx8) \
125 V(JumpIfFalse, OperandType::kImm8) \ 125 V(JumpIfFalse, OperandType::kImm8) \
126 V(JumpIfFalseConstant, OperandType::kIdx8) \ 126 V(JumpIfFalseConstant, OperandType::kIdx8) \
127 V(JumpIfToBooleanTrue, OperandType::kImm8) \
128 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \
129 V(JumpIfToBooleanFalse, OperandType::kImm8) \
130 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \
127 V(Return, OperandType::kNone) 131 V(Return, OperandType::kNone)
128 132
129 133
130 // Enumeration of the size classes of operand types used by bytecodes. 134 // Enumeration of the size classes of operand types used by bytecodes.
131 enum class OperandSize : uint8_t { 135 enum class OperandSize : uint8_t {
132 kNone = 0, 136 kNone = 0,
133 kByte = 1, 137 kByte = 1,
134 kShort = 2, 138 kShort = 2,
135 }; 139 };
136 140
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 270
267 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 271 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
268 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 272 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
269 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 273 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
270 274
271 } // namespace interpreter 275 } // namespace interpreter
272 } // namespace internal 276 } // namespace internal
273 } // namespace v8 277 } // namespace v8
274 278
275 #endif // V8_INTERPRETER_BYTECODES_H_ 279 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698