| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 case Bytecode::kWide: | 498 case Bytecode::kWide: |
| 499 case Bytecode::kDebugBreakWide: | 499 case Bytecode::kDebugBreakWide: |
| 500 return true; | 500 return true; |
| 501 default: | 501 default: |
| 502 return false; | 502 return false; |
| 503 } | 503 } |
| 504 } | 504 } |
| 505 | 505 |
| 506 // static | 506 // static |
| 507 bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) { | 507 bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) { |
| 508 return bytecode == Bytecode::kToName || bytecode == Bytecode::kTypeOf; | 508 return bytecode == Bytecode::kTypeOf; |
| 509 } | 509 } |
| 510 | 510 |
| 511 // static | 511 // static |
| 512 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { | 512 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { |
| 513 return bytecode == Bytecode::kReturn || IsJump(bytecode); | 513 return bytecode == Bytecode::kReturn || IsJump(bytecode); |
| 514 } | 514 } |
| 515 | 515 |
| 516 // static | 516 // static |
| 517 bool Bytecodes::IsMaybeRegisterOperandType(OperandType operand_type) { | 517 bool Bytecodes::IsMaybeRegisterOperandType(OperandType operand_type) { |
| 518 return operand_type == OperandType::kMaybeReg; | 518 return operand_type == OperandType::kMaybeReg; |
| (...skipping 155 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 |