OLD | NEW |
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 #include "src/interpreter/bytecodes.h" | 5 #include "src/interpreter/bytecodes.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 case Bytecode::kLogicalNot: | 248 case Bytecode::kLogicalNot: |
249 case Bytecode::kTestEqual: | 249 case Bytecode::kTestEqual: |
250 case Bytecode::kTestNotEqual: | 250 case Bytecode::kTestNotEqual: |
251 case Bytecode::kTestEqualStrict: | 251 case Bytecode::kTestEqualStrict: |
252 case Bytecode::kTestLessThan: | 252 case Bytecode::kTestLessThan: |
253 case Bytecode::kTestLessThanOrEqual: | 253 case Bytecode::kTestLessThanOrEqual: |
254 case Bytecode::kTestGreaterThan: | 254 case Bytecode::kTestGreaterThan: |
255 case Bytecode::kTestGreaterThanOrEqual: | 255 case Bytecode::kTestGreaterThanOrEqual: |
256 case Bytecode::kTestInstanceOf: | 256 case Bytecode::kTestInstanceOf: |
257 case Bytecode::kTestIn: | 257 case Bytecode::kTestIn: |
258 case Bytecode::kForInDone: | 258 case Bytecode::kForInContinue: |
259 return true; | 259 return true; |
260 default: | 260 default: |
261 return false; | 261 return false; |
262 } | 262 } |
263 } | 263 } |
264 | 264 |
265 // static | 265 // static |
266 bool Bytecodes::IsAccumulatorLoadWithoutEffects(Bytecode bytecode) { | 266 bool Bytecodes::IsAccumulatorLoadWithoutEffects(Bytecode bytecode) { |
267 switch (bytecode) { | 267 switch (bytecode) { |
268 case Bytecode::kLdaZero: | 268 case Bytecode::kLdaZero: |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 return os << Bytecodes::OperandScaleToString(operand_scale); | 674 return os << Bytecodes::OperandScaleToString(operand_scale); |
675 } | 675 } |
676 | 676 |
677 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type) { | 677 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type) { |
678 return os << Bytecodes::OperandTypeToString(operand_type); | 678 return os << Bytecodes::OperandTypeToString(operand_type); |
679 } | 679 } |
680 | 680 |
681 } // namespace interpreter | 681 } // namespace interpreter |
682 } // namespace internal | 682 } // namespace internal |
683 } // namespace v8 | 683 } // namespace v8 |
OLD | NEW |