| 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 return *this; | 982 return *this; |
| 983 } | 983 } |
| 984 | 984 |
| 985 | 985 |
| 986 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { | 986 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { |
| 987 Output(Bytecode::kReturn); | 987 Output(Bytecode::kReturn); |
| 988 exit_seen_in_block_ = true; | 988 exit_seen_in_block_ = true; |
| 989 return *this; | 989 return *this; |
| 990 } | 990 } |
| 991 | 991 |
| 992 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { |
| 993 Output(Bytecode::kDebugger); |
| 994 return *this; |
| 995 } |
| 992 | 996 |
| 993 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( | 997 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( |
| 994 Register cache_info_triple) { | 998 Register cache_info_triple) { |
| 995 if (FitsInReg8Operand(cache_info_triple)) { | 999 if (FitsInReg8Operand(cache_info_triple)) { |
| 996 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand()); | 1000 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand()); |
| 997 } else if (FitsInReg16Operand(cache_info_triple)) { | 1001 } else if (FitsInReg16Operand(cache_info_triple)) { |
| 998 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand()); | 1002 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand()); |
| 999 } else { | 1003 } else { |
| 1000 UNIMPLEMENTED(); | 1004 UNIMPLEMENTED(); |
| 1001 } | 1005 } |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 } | 1683 } |
| 1680 | 1684 |
| 1681 // static | 1685 // static |
| 1682 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { | 1686 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { |
| 1683 return value.is_short_operand(); | 1687 return value.is_short_operand(); |
| 1684 } | 1688 } |
| 1685 | 1689 |
| 1686 } // namespace interpreter | 1690 } // namespace interpreter |
| 1687 } // namespace internal | 1691 } // namespace internal |
| 1688 } // namespace v8 | 1692 } // namespace v8 |
| OLD | NEW |