| 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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 return *this; | 968 return *this; |
| 969 } | 969 } |
| 970 | 970 |
| 971 | 971 |
| 972 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { | 972 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { |
| 973 Output(Bytecode::kReturn); | 973 Output(Bytecode::kReturn); |
| 974 exit_seen_in_block_ = true; | 974 exit_seen_in_block_ = true; |
| 975 return *this; | 975 return *this; |
| 976 } | 976 } |
| 977 | 977 |
| 978 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { |
| 979 Output(Bytecode::kDebugger); |
| 980 return *this; |
| 981 } |
| 978 | 982 |
| 979 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( | 983 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( |
| 980 Register cache_info_triple) { | 984 Register cache_info_triple) { |
| 981 if (FitsInReg8Operand(cache_info_triple)) { | 985 if (FitsInReg8Operand(cache_info_triple)) { |
| 982 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand()); | 986 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand()); |
| 983 } else if (FitsInReg16Operand(cache_info_triple)) { | 987 } else if (FitsInReg16Operand(cache_info_triple)) { |
| 984 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand()); | 988 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand()); |
| 985 } else { | 989 } else { |
| 986 UNIMPLEMENTED(); | 990 UNIMPLEMENTED(); |
| 987 } | 991 } |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 } | 1669 } |
| 1666 | 1670 |
| 1667 // static | 1671 // static |
| 1668 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { | 1672 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { |
| 1669 return value.is_short_operand(); | 1673 return value.is_short_operand(); |
| 1670 } | 1674 } |
| 1671 | 1675 |
| 1672 } // namespace interpreter | 1676 } // namespace interpreter |
| 1673 } // namespace internal | 1677 } // namespace internal |
| 1674 } // namespace v8 | 1678 } // namespace v8 |
| OLD | NEW |