OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
| 8 #include "vm/instructions.h" |
| 9 #include "vm/instructions_mips.h" |
| 10 |
8 #include "vm/constants_mips.h" | 11 #include "vm/constants_mips.h" |
9 #include "vm/cpu.h" | 12 #include "vm/cpu.h" |
10 #include "vm/instructions.h" | |
11 #include "vm/object.h" | 13 #include "vm/object.h" |
12 | 14 |
13 namespace dart { | 15 namespace dart { |
14 | 16 |
15 CallPattern::CallPattern(uword pc, const Code& code) | 17 CallPattern::CallPattern(uword pc, const Code& code) |
16 : object_pool_(ObjectPool::Handle(code.GetObjectPool())), | 18 : object_pool_(ObjectPool::Handle(code.GetObjectPool())), |
17 end_(pc), | 19 end_(pc), |
18 ic_data_load_end_(0), | 20 ic_data_load_end_(0), |
19 target_code_pool_index_(-1), | 21 target_code_pool_index_(-1), |
20 ic_data_(ICData::Handle()) { | 22 ic_data_(ICData::Handle()) { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 bool ReturnPattern::IsValid() const { | 272 bool ReturnPattern::IsValid() const { |
271 Instr* jr = Instr::At(pc_); | 273 Instr* jr = Instr::At(pc_); |
272 return (jr->OpcodeField() == SPECIAL) && | 274 return (jr->OpcodeField() == SPECIAL) && |
273 (jr->FunctionField() == JR) && | 275 (jr->FunctionField() == JR) && |
274 (jr->RsField() == RA); | 276 (jr->RsField() == RA); |
275 } | 277 } |
276 | 278 |
277 } // namespace dart | 279 } // namespace dart |
278 | 280 |
279 #endif // defined TARGET_ARCH_MIPS | 281 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |