OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
| 8 #include "vm/instructions.h" |
| 9 #include "vm/instructions_arm64.h" |
| 10 |
8 #include "vm/assembler.h" | 11 #include "vm/assembler.h" |
9 #include "vm/constants_arm64.h" | 12 #include "vm/constants_arm64.h" |
10 #include "vm/cpu.h" | 13 #include "vm/cpu.h" |
11 #include "vm/instructions.h" | |
12 #include "vm/object.h" | 14 #include "vm/object.h" |
13 | 15 |
14 namespace dart { | 16 namespace dart { |
15 | 17 |
16 CallPattern::CallPattern(uword pc, const Code& code) | 18 CallPattern::CallPattern(uword pc, const Code& code) |
17 : object_pool_(ObjectPool::Handle(code.GetObjectPool())), | 19 : object_pool_(ObjectPool::Handle(code.GetObjectPool())), |
18 end_(pc), | 20 end_(pc), |
19 ic_data_load_end_(0), | 21 ic_data_load_end_(0), |
20 target_code_pool_index_(-1), | 22 target_code_pool_index_(-1), |
21 ic_data_(ICData::Handle()) { | 23 ic_data_(ICData::Handle()) { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 bool ReturnPattern::IsValid() const { | 387 bool ReturnPattern::IsValid() const { |
386 Instr* bx_lr = Instr::At(pc_); | 388 Instr* bx_lr = Instr::At(pc_); |
387 const Register crn = ConcreteRegister(LR); | 389 const Register crn = ConcreteRegister(LR); |
388 const int32_t instruction = RET | (static_cast<int32_t>(crn) << kRnShift); | 390 const int32_t instruction = RET | (static_cast<int32_t>(crn) << kRnShift); |
389 return bx_lr->InstructionBits() == instruction; | 391 return bx_lr->InstructionBits() == instruction; |
390 } | 392 } |
391 | 393 |
392 } // namespace dart | 394 } // namespace dart |
393 | 395 |
394 #endif // defined TARGET_ARCH_ARM64 | 396 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |