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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return *pointer_offsets_; | 144 return *pointer_offsets_; |
145 } | 145 } |
146 const GrowableObjectArray& object_pool() const { | 146 const GrowableObjectArray& object_pool() const { |
147 UNIMPLEMENTED(); | 147 UNIMPLEMENTED(); |
148 return object_pool_; | 148 return object_pool_; |
149 } | 149 } |
150 void FinalizeInstructions(const MemoryRegion& region) { | 150 void FinalizeInstructions(const MemoryRegion& region) { |
151 UNIMPLEMENTED(); | 151 UNIMPLEMENTED(); |
152 } | 152 } |
153 | 153 |
| 154 // Set up a Dart frame on entry with a frame pointer and PC information to |
| 155 // enable easy access to the RawInstruction object of code corresponding |
| 156 // to this frame. |
| 157 void EnterDartFrame(intptr_t frame_size) { |
| 158 UNIMPLEMENTED(); |
| 159 } |
| 160 |
| 161 // Set up a stub frame so that the stack traversal code can easily identify |
| 162 // a stub frame. |
| 163 void EnterStubFrame() { |
| 164 UNIMPLEMENTED(); |
| 165 } |
| 166 |
| 167 // Instruction pattern from entrypoint is used in dart frame prologs |
| 168 // to set up the frame and save a PC which can be used to figure out the |
| 169 // RawInstruction object corresponding to the code running in the frame. |
| 170 static const intptr_t kOffsetOfSavedPCfromEntrypoint = -1; // UNIMPLEMENTED. |
| 171 |
| 172 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 173 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 174 // Allocated instance is returned in 'instance_reg'. |
| 175 // Only the tags field of the object is initialized. |
| 176 void TryAllocate(const Class& cls, |
| 177 Label* failure, |
| 178 bool near_jump, |
| 179 Register instance_reg) { |
| 180 UNIMPLEMENTED(); |
| 181 } |
| 182 |
154 // Debugging and bringup support. | 183 // Debugging and bringup support. |
155 void Stop(const char* message) { UNIMPLEMENTED(); } | 184 void Stop(const char* message) { UNIMPLEMENTED(); } |
156 void Unimplemented(const char* message); | 185 void Unimplemented(const char* message); |
157 void Untested(const char* message); | 186 void Untested(const char* message); |
158 void Unreachable(const char* message); | 187 void Unreachable(const char* message); |
159 | 188 |
160 static void InitializeMemoryWithBreakpoints(uword data, int length) { | 189 static void InitializeMemoryWithBreakpoints(uword data, int length) { |
161 UNIMPLEMENTED(); | 190 UNIMPLEMENTED(); |
162 } | 191 } |
163 | 192 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 227 |
199 GrowableArray<CodeComment*> comments_; | 228 GrowableArray<CodeComment*> comments_; |
200 | 229 |
201 DISALLOW_ALLOCATION(); | 230 DISALLOW_ALLOCATION(); |
202 DISALLOW_COPY_AND_ASSIGN(Assembler); | 231 DISALLOW_COPY_AND_ASSIGN(Assembler); |
203 }; | 232 }; |
204 | 233 |
205 } // namespace dart | 234 } // namespace dart |
206 | 235 |
207 #endif // VM_ASSEMBLER_MIPS_H_ | 236 #endif // VM_ASSEMBLER_MIPS_H_ |
OLD | NEW |