OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) |
| 7 |
| 8 #include "vm/assembler.h" |
| 9 #include "vm/constants_arm64.h" |
| 10 #include "vm/cpu.h" |
| 11 #include "vm/instructions.h" |
| 12 #include "vm/object.h" |
| 13 |
| 14 namespace dart { |
| 15 |
| 16 CallPattern::CallPattern(uword pc, const Code& code) |
| 17 : object_pool_(Array::Handle(code.ObjectPool())), |
| 18 end_(pc), |
| 19 args_desc_load_end_(0), |
| 20 ic_data_load_end_(0), |
| 21 target_address_pool_index_(-1), |
| 22 args_desc_(Array::Handle()), |
| 23 ic_data_(ICData::Handle()) { |
| 24 UNIMPLEMENTED(); |
| 25 } |
| 26 |
| 27 |
| 28 int CallPattern::LengthInBytes() { |
| 29 UNIMPLEMENTED(); |
| 30 return 0; |
| 31 } |
| 32 |
| 33 |
| 34 // Decodes a load sequence ending at 'end' (the last instruction of the load |
| 35 // sequence is the instruction before the one at end). Returns a pointer to |
| 36 // the first instruction in the sequence. Returns the register being loaded |
| 37 // and the loaded object in the output parameters 'reg' and 'obj' |
| 38 // respectively. |
| 39 uword InstructionPattern::DecodeLoadObject(uword end, |
| 40 const Array& object_pool, |
| 41 Register* reg, |
| 42 Object* obj) { |
| 43 UNIMPLEMENTED(); |
| 44 return 0; |
| 45 } |
| 46 |
| 47 |
| 48 // Decodes a load sequence ending at 'end' (the last instruction of the load |
| 49 // sequence is the instruction before the one at end). Returns a pointer to |
| 50 // the first instruction in the sequence. Returns the register being loaded |
| 51 // and the loaded immediate value in the output parameters 'reg' and 'value' |
| 52 // respectively. |
| 53 uword InstructionPattern::DecodeLoadWordImmediate(uword end, |
| 54 Register* reg, |
| 55 intptr_t* value) { |
| 56 UNIMPLEMENTED(); |
| 57 return 0; |
| 58 } |
| 59 |
| 60 |
| 61 // Decodes a load sequence ending at 'end' (the last instruction of the load |
| 62 // sequence is the instruction before the one at end). Returns a pointer to |
| 63 // the first instruction in the sequence. Returns the register being loaded |
| 64 // and the index in the pool being read from in the output parameters 'reg' |
| 65 // and 'index' respectively. |
| 66 uword InstructionPattern::DecodeLoadWordFromPool(uword end, |
| 67 Register* reg, |
| 68 intptr_t* index) { |
| 69 UNIMPLEMENTED(); |
| 70 return 0; |
| 71 } |
| 72 |
| 73 |
| 74 RawICData* CallPattern::IcData() { |
| 75 UNIMPLEMENTED(); |
| 76 return NULL; |
| 77 } |
| 78 |
| 79 |
| 80 RawArray* CallPattern::ClosureArgumentsDescriptor() { |
| 81 UNIMPLEMENTED(); |
| 82 return NULL; |
| 83 } |
| 84 |
| 85 |
| 86 uword CallPattern::TargetAddress() const { |
| 87 UNIMPLEMENTED(); |
| 88 return 0; |
| 89 } |
| 90 |
| 91 |
| 92 void CallPattern::SetTargetAddress(uword target_address) const { |
| 93 UNIMPLEMENTED(); |
| 94 } |
| 95 |
| 96 |
| 97 void CallPattern::InsertAt(uword pc, uword target_address) { |
| 98 UNIMPLEMENTED(); |
| 99 } |
| 100 |
| 101 |
| 102 JumpPattern::JumpPattern(uword pc, const Code& code) : pc_(pc) { } |
| 103 |
| 104 |
| 105 int JumpPattern::pattern_length_in_bytes() { |
| 106 UNIMPLEMENTED(); |
| 107 return 0; |
| 108 } |
| 109 |
| 110 |
| 111 bool JumpPattern::IsValid() const { |
| 112 UNIMPLEMENTED(); |
| 113 return false; |
| 114 } |
| 115 |
| 116 |
| 117 uword JumpPattern::TargetAddress() const { |
| 118 UNIMPLEMENTED(); |
| 119 return 0; |
| 120 } |
| 121 |
| 122 |
| 123 void JumpPattern::SetTargetAddress(uword target_address) const { |
| 124 UNIMPLEMENTED(); |
| 125 } |
| 126 |
| 127 } // namespace dart |
| 128 |
| 129 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |