OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_H_ | 5 #ifndef VM_ASSEMBLER_H_ |
6 #define VM_ASSEMBLER_H_ | 6 #define VM_ASSEMBLER_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 kPatchable, | 283 kPatchable, |
284 kNotPatchable, | 284 kNotPatchable, |
285 }; | 285 }; |
286 | 286 |
287 | 287 |
288 class ObjectPoolWrapper : public ValueObject { | 288 class ObjectPoolWrapper : public ValueObject { |
289 public: | 289 public: |
290 intptr_t AddObject(const Object& obj, | 290 intptr_t AddObject(const Object& obj, |
291 Patchability patchable = kNotPatchable); | 291 Patchability patchable = kNotPatchable); |
292 intptr_t AddImmediate(uword imm); | 292 intptr_t AddImmediate(uword imm); |
293 intptr_t AddExternalLabel(const ExternalLabel* label, | |
294 Patchability patchable); | |
295 | 293 |
296 intptr_t FindObject(const Object& obj, | 294 intptr_t FindObject(const Object& obj, |
297 Patchability patchable = kNotPatchable); | 295 Patchability patchable = kNotPatchable); |
298 intptr_t FindImmediate(uword imm); | 296 intptr_t FindImmediate(uword imm); |
299 intptr_t FindExternalLabel(const ExternalLabel* label, | |
300 Patchability patchable); | |
301 intptr_t FindNativeEntry(const ExternalLabel* label, | 297 intptr_t FindNativeEntry(const ExternalLabel* label, |
302 Patchability patchable); | 298 Patchability patchable); |
303 | 299 |
304 RawObjectPool* MakeObjectPool(); | 300 RawObjectPool* MakeObjectPool(); |
305 | 301 |
306 private: | 302 private: |
307 intptr_t AddObject(ObjectPool::Entry entry, Patchability patchable); | 303 intptr_t AddObject(ObjectPool::Entry entry, Patchability patchable); |
308 intptr_t FindObject(ObjectPool::Entry entry, Patchability patchable); | 304 intptr_t FindObject(ObjectPool::Entry entry, Patchability patchable); |
309 | 305 |
310 // Objects and jump targets. | 306 // Objects and jump targets. |
(...skipping 20 matching lines...) Expand all Loading... |
331 #include "vm/assembler_arm.h" | 327 #include "vm/assembler_arm.h" |
332 #elif defined(TARGET_ARCH_ARM64) | 328 #elif defined(TARGET_ARCH_ARM64) |
333 #include "vm/assembler_arm64.h" | 329 #include "vm/assembler_arm64.h" |
334 #elif defined(TARGET_ARCH_MIPS) | 330 #elif defined(TARGET_ARCH_MIPS) |
335 #include "vm/assembler_mips.h" | 331 #include "vm/assembler_mips.h" |
336 #else | 332 #else |
337 #error Unknown architecture. | 333 #error Unknown architecture. |
338 #endif | 334 #endif |
339 | 335 |
340 #endif // VM_ASSEMBLER_H_ | 336 #endif // VM_ASSEMBLER_H_ |
OLD | NEW |