| 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/bytecode-array-builder.h" | 5 #include "src/interpreter/bytecode-array-builder.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 namespace interpreter { | 9 namespace interpreter { |
| 10 | 10 |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 } | 953 } |
| 954 | 954 |
| 955 | 955 |
| 956 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { | 956 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { |
| 957 Output(Bytecode::kThrow); | 957 Output(Bytecode::kThrow); |
| 958 exit_seen_in_block_ = true; | 958 exit_seen_in_block_ = true; |
| 959 return *this; | 959 return *this; |
| 960 } | 960 } |
| 961 | 961 |
| 962 | 962 |
| 963 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { |
| 964 Output(Bytecode::kReThrow); |
| 965 exit_seen_in_block_ = true; |
| 966 return *this; |
| 967 } |
| 968 |
| 969 |
| 963 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { | 970 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { |
| 964 Output(Bytecode::kReturn); | 971 Output(Bytecode::kReturn); |
| 965 exit_seen_in_block_ = true; | 972 exit_seen_in_block_ = true; |
| 966 return *this; | 973 return *this; |
| 967 } | 974 } |
| 968 | 975 |
| 969 | 976 |
| 970 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( | 977 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( |
| 971 Register cache_info_triple) { | 978 Register cache_info_triple) { |
| 972 if (FitsInReg8Operand(cache_info_triple)) { | 979 if (FitsInReg8Operand(cache_info_triple)) { |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 | 1685 |
| 1679 | 1686 |
| 1680 // static | 1687 // static |
| 1681 bool BytecodeArrayBuilder::FitsInReg16Operand(Register value) { | 1688 bool BytecodeArrayBuilder::FitsInReg16Operand(Register value) { |
| 1682 return kMinInt16 <= value.index() && value.index() <= kMaxInt16; | 1689 return kMinInt16 <= value.index() && value.index() <= kMaxInt16; |
| 1683 } | 1690 } |
| 1684 | 1691 |
| 1685 } // namespace interpreter | 1692 } // namespace interpreter |
| 1686 } // namespace internal | 1693 } // namespace internal |
| 1687 } // namespace v8 | 1694 } // namespace v8 |
| OLD | NEW |