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

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

Issue 1410863002: [Interpreter] Add support for Throw. (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
« no previous file with comments | « src/interpreter/bytecode-generator.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 V(Jump, OperandType::kImm8) \ 124 V(Jump, OperandType::kImm8) \
125 V(JumpConstant, OperandType::kIdx8) \ 125 V(JumpConstant, OperandType::kIdx8) \
126 V(JumpIfTrue, OperandType::kImm8) \ 126 V(JumpIfTrue, OperandType::kImm8) \
127 V(JumpIfTrueConstant, OperandType::kIdx8) \ 127 V(JumpIfTrueConstant, OperandType::kIdx8) \
128 V(JumpIfFalse, OperandType::kImm8) \ 128 V(JumpIfFalse, OperandType::kImm8) \
129 V(JumpIfFalseConstant, OperandType::kIdx8) \ 129 V(JumpIfFalseConstant, OperandType::kIdx8) \
130 V(JumpIfToBooleanTrue, OperandType::kImm8) \ 130 V(JumpIfToBooleanTrue, OperandType::kImm8) \
131 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ 131 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \
132 V(JumpIfToBooleanFalse, OperandType::kImm8) \ 132 V(JumpIfToBooleanFalse, OperandType::kImm8) \
133 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ 133 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \
134 V(Throw, OperandType::kNone) \
134 V(Return, OperandType::kNone) 135 V(Return, OperandType::kNone)
135 136
136 137
137 // Enumeration of the size classes of operand types used by bytecodes. 138 // Enumeration of the size classes of operand types used by bytecodes.
138 enum class OperandSize : uint8_t { 139 enum class OperandSize : uint8_t {
139 kNone = 0, 140 kNone = 0,
140 kByte = 1, 141 kByte = 1,
141 kShort = 2, 142 kShort = 2,
142 }; 143 };
143 144
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 283
283 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 284 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
284 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 285 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
285 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 286 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
286 287
287 } // namespace interpreter 288 } // namespace interpreter
288 } // namespace internal 289 } // namespace internal
289 } // namespace v8 290 } // namespace v8
290 291
291 #endif // V8_INTERPRETER_BYTECODES_H_ 292 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698