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

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

Issue 1697473002: [interpreter] Add bytecodes for JumpIfNotHole with constant (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ 241 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \
242 V(JumpIfToBooleanFalse, OperandType::kImm8) \ 242 V(JumpIfToBooleanFalse, OperandType::kImm8) \
243 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ 243 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \
244 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ 244 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \
245 V(JumpIfNull, OperandType::kImm8) \ 245 V(JumpIfNull, OperandType::kImm8) \
246 V(JumpIfNullConstant, OperandType::kIdx8) \ 246 V(JumpIfNullConstant, OperandType::kIdx8) \
247 V(JumpIfNullConstantWide, OperandType::kIdx16) \ 247 V(JumpIfNullConstantWide, OperandType::kIdx16) \
248 V(JumpIfUndefined, OperandType::kImm8) \ 248 V(JumpIfUndefined, OperandType::kImm8) \
249 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ 249 V(JumpIfUndefinedConstant, OperandType::kIdx8) \
250 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ 250 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \
251 /* TODO(mythria): Replace with opcodes that throw on a hole */ \
252 V(JumpIfHole, OperandType::kImm8) \
253 V(JumpIfNotHole, OperandType::kImm8) \ 251 V(JumpIfNotHole, OperandType::kImm8) \
252 V(JumpIfNotHoleConstant, OperandType::kIdx8) \
253 V(JumpIfNotHoleConstantWide, OperandType::kIdx16) \
254 \ 254 \
255 /* Complex flow control For..in */ \ 255 /* Complex flow control For..in */ \
256 V(ForInPrepare, OperandType::kRegOutTriple8) \ 256 V(ForInPrepare, OperandType::kRegOutTriple8) \
257 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ 257 V(ForInPrepareWide, OperandType::kRegOutTriple16) \
258 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ 258 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \
259 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ 259 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \
260 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ 260 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \
261 OperandType::kRegPair16) \ 261 OperandType::kRegPair16) \
262 V(ForInStep, OperandType::kReg8) \ 262 V(ForInStep, OperandType::kReg8) \
263 \ 263 \
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 499 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
500 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 500 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
501 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 501 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
502 502
503 } // namespace interpreter 503 } // namespace interpreter
504 } // namespace internal 504 } // namespace internal
505 } // namespace v8 505 } // namespace v8
506 506
507 #endif // V8_INTERPRETER_BYTECODES_H_ 507 #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