| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC. |
| 6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
| 7 | 7 |
| 8 #include "vm/instructions.h" | 8 #include "vm/instructions.h" |
| 9 #include "vm/instructions_dbc.h" | 9 #include "vm/instructions_dbc.h" |
| 10 | 10 |
| 11 #include "vm/assembler.h" | 11 #include "vm/assembler.h" |
| 12 #include "vm/constants_dbc.h" | 12 #include "vm/constants_dbc.h" |
| 13 #include "vm/cpu.h" | 13 #include "vm/cpu.h" |
| 14 #include "vm/object.h" | 14 #include "vm/object.h" |
| 15 | 15 |
| 16 namespace dart { | 16 namespace dart { |
| 17 | 17 |
| 18 static bool HasLoadFromPool(Instr instr) { | 18 static bool HasLoadFromPool(Instr instr) { |
| 19 switch (Bytecode::DecodeOpcode(instr)) { | 19 switch (Bytecode::DecodeOpcode(instr)) { |
| 20 case Bytecode::kLoadConstant: | 20 case Bytecode::kLoadConstant: |
| 21 case Bytecode::kPushConstant: | 21 case Bytecode::kPushConstant: |
| 22 case Bytecode::kStaticCall: | 22 case Bytecode::kStaticCall: |
| 23 case Bytecode::kIndirectStaticCall: |
| 23 case Bytecode::kInstanceCall1: | 24 case Bytecode::kInstanceCall1: |
| 24 case Bytecode::kInstanceCall2: | 25 case Bytecode::kInstanceCall2: |
| 25 case Bytecode::kInstanceCall1Opt: | 26 case Bytecode::kInstanceCall1Opt: |
| 26 case Bytecode::kInstanceCall2Opt: | 27 case Bytecode::kInstanceCall2Opt: |
| 27 case Bytecode::kStoreStaticTOS: | 28 case Bytecode::kStoreStaticTOS: |
| 28 case Bytecode::kPushStatic: | 29 case Bytecode::kPushStatic: |
| 29 case Bytecode::kAllocate: | 30 case Bytecode::kAllocate: |
| 30 case Bytecode::kInstantiateType: | 31 case Bytecode::kInstantiateType: |
| 31 case Bytecode::kInstantiateTypeArgumentsTOS: | 32 case Bytecode::kInstantiateTypeArgumentsTOS: |
| 32 case Bytecode::kAssertAssignable: | 33 case Bytecode::kAssertAssignable: |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 220 |
| 220 | 221 |
| 221 bool ReturnPattern::IsValid() const { | 222 bool ReturnPattern::IsValid() const { |
| 222 UNIMPLEMENTED(); | 223 UNIMPLEMENTED(); |
| 223 return false; | 224 return false; |
| 224 } | 225 } |
| 225 | 226 |
| 226 } // namespace dart | 227 } // namespace dart |
| 227 | 228 |
| 228 #endif // defined TARGET_ARCH_DBC | 229 #endif // defined TARGET_ARCH_DBC |
| OLD | NEW |