| 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_CODE_GENERATOR_H_ | 5 #ifndef VM_CODE_GENERATOR_H_ |
| 6 #define VM_CODE_GENERATOR_H_ | 6 #define VM_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/runtime_entry.h" | 9 #include "vm/runtime_entry.h" |
| 10 | 10 |
| 11 #if defined(TARGET_ARCH_IA32) | |
| 12 #include "vm/code_generator_ia32.h" | |
| 13 #elif defined(TARGET_ARCH_X64) | |
| 14 #include "vm/code_generator_x64.h" | |
| 15 #elif defined(TARGET_ARCH_ARM) | |
| 16 #include "vm/code_generator_arm.h" | |
| 17 #else | |
| 18 #error Unknown architecture. | |
| 19 #endif | |
| 20 | |
| 21 namespace dart { | 11 namespace dart { |
| 22 | 12 |
| 23 // Declaration of runtime entries called from stub or generated code. | 13 // Declaration of runtime entries called from stub or generated code. |
| 24 DECLARE_RUNTIME_ENTRY(AllocateArray); | 14 DECLARE_RUNTIME_ENTRY(AllocateArray); |
| 25 DECLARE_RUNTIME_ENTRY(AllocateClosure); | 15 DECLARE_RUNTIME_ENTRY(AllocateClosure); |
| 26 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); | 16 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); |
| 27 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); | 17 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); |
| 28 DECLARE_RUNTIME_ENTRY(AllocateContext); | 18 DECLARE_RUNTIME_ENTRY(AllocateContext); |
| 29 DECLARE_RUNTIME_ENTRY(AllocateObject); | 19 DECLARE_RUNTIME_ENTRY(AllocateObject); |
| 30 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck); | 20 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const Class& class_; | 122 const Class& class_; |
| 133 }; | 123 }; |
| 134 | 124 |
| 135 | 125 |
| 136 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, | 126 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, |
| 137 const Instance& receiver); | 127 const Instance& receiver); |
| 138 | 128 |
| 139 } // namespace dart | 129 } // namespace dart |
| 140 | 130 |
| 141 #endif // VM_CODE_GENERATOR_H_ | 131 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |