| 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 #ifndef VM_ASSEMBLER_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
| 6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Debugging and bringup support. | 146 // Debugging and bringup support. |
| 147 void Stop(const char* message) { UNIMPLEMENTED(); } | 147 void Stop(const char* message) { UNIMPLEMENTED(); } |
| 148 void Unimplemented(const char* message); | 148 void Unimplemented(const char* message); |
| 149 void Untested(const char* message); | 149 void Untested(const char* message); |
| 150 void Unreachable(const char* message); | 150 void Unreachable(const char* message); |
| 151 | 151 |
| 152 static void InitializeMemoryWithBreakpoints(uword data, int length) { | 152 static void InitializeMemoryWithBreakpoints(uword data, int length) { |
| 153 UNIMPLEMENTED(); | 153 UNIMPLEMENTED(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3) { | 156 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| 157 UNIMPLEMENTED(); | |
| 158 } | |
| 159 | 157 |
| 160 const Code::Comments& GetCodeComments() const { | 158 const Code::Comments& GetCodeComments() const; |
| 161 UNIMPLEMENTED(); | |
| 162 return Code::Comments::New(0); | |
| 163 } | |
| 164 | 159 |
| 165 static const char* RegisterName(Register reg) { | 160 static const char* RegisterName(Register reg) { |
| 166 UNIMPLEMENTED(); | 161 UNIMPLEMENTED(); |
| 167 return NULL; | 162 return NULL; |
| 168 } | 163 } |
| 169 | 164 |
| 170 static const char* FpuRegisterName(FpuRegister reg) { | 165 static const char* FpuRegisterName(FpuRegister reg) { |
| 171 UNIMPLEMENTED(); | 166 UNIMPLEMENTED(); |
| 172 return NULL; | 167 return NULL; |
| 173 } | 168 } |
| 174 | 169 |
| 175 private: | 170 private: |
| 171 AssemblerBuffer buffer_; |
| 176 ZoneGrowableArray<int>* pointer_offsets_; | 172 ZoneGrowableArray<int>* pointer_offsets_; |
| 173 int prologue_offset_; |
| 174 |
| 175 class CodeComment : public ZoneAllocated { |
| 176 public: |
| 177 CodeComment(intptr_t pc_offset, const String& comment) |
| 178 : pc_offset_(pc_offset), comment_(comment) { } |
| 179 |
| 180 intptr_t pc_offset() const { return pc_offset_; } |
| 181 const String& comment() const { return comment_; } |
| 182 |
| 183 private: |
| 184 intptr_t pc_offset_; |
| 185 const String& comment_; |
| 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(CodeComment); |
| 188 }; |
| 189 |
| 190 GrowableArray<CodeComment*> comments_; |
| 191 |
| 177 DISALLOW_ALLOCATION(); | 192 DISALLOW_ALLOCATION(); |
| 178 DISALLOW_COPY_AND_ASSIGN(Assembler); | 193 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 179 }; | 194 }; |
| 180 | 195 |
| 181 } // namespace dart | 196 } // namespace dart |
| 182 | 197 |
| 183 #endif // VM_ASSEMBLER_MIPS_H_ | 198 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |