OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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) | 11 #if defined(TARGET_ARCH_IA32) |
12 #include "vm/code_generator_ia32.h" | 12 #include "vm/code_generator_ia32.h" |
13 #elif defined(TARGET_ARCH_X64) | 13 #elif defined(TARGET_ARCH_X64) |
14 #include "vm/code_generator_x64.h" | 14 #include "vm/code_generator_x64.h" |
15 #elif defined(TARGET_ARCH_ARM) | 15 #elif defined(TARGET_ARCH_ARM) |
16 #include "vm/code_generator_arm.h" | 16 #include "vm/code_generator_arm.h" |
17 #else | 17 #else |
18 #error Unknown architecture. | 18 #error Unknown architecture. |
19 #endif | 19 #endif |
20 | 20 |
21 namespace dart { | 21 namespace dart { |
22 | 22 |
23 // Declaration of runtime entries called from stub or generated code. | 23 // Declaration of runtime entries called from stub or generated code. |
24 DECLARE_RUNTIME_ENTRY(AllocateArray); | 24 DECLARE_RUNTIME_ENTRY(AllocateArray); |
25 DECLARE_RUNTIME_ENTRY(AllocateClosure); | 25 DECLARE_RUNTIME_ENTRY(AllocateClosure); |
26 DECLARE_RUNTIME_ENTRY(AllocateImplicitClosure); | 26 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); |
27 DECLARE_RUNTIME_ENTRY(AllocateStaticImplicitClosure); | 27 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); |
28 DECLARE_RUNTIME_ENTRY(AllocateContext); | 28 DECLARE_RUNTIME_ENTRY(AllocateContext); |
29 DECLARE_RUNTIME_ENTRY(AllocateObject); | 29 DECLARE_RUNTIME_ENTRY(AllocateObject); |
30 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); | 30 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); |
31 DECLARE_RUNTIME_ENTRY(Deoptimize); | 31 DECLARE_RUNTIME_ENTRY(Deoptimize); |
32 DECLARE_RUNTIME_ENTRY(FixCallersTarget); | 32 DECLARE_RUNTIME_ENTRY(FixCallersTarget); |
33 DECLARE_RUNTIME_ENTRY(Instanceof); | 33 DECLARE_RUNTIME_ENTRY(Instanceof); |
34 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); | 34 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); |
35 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); | 35 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); |
36 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); | 36 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); |
37 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); | 37 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const Function& function, | 84 const Function& function, |
85 int num_arguments, | 85 int num_arguments, |
86 int num_named_arguments); | 86 int num_named_arguments); |
87 | 87 |
88 const Class& class_; | 88 const Class& class_; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace dart | 91 } // namespace dart |
92 | 92 |
93 #endif // VM_CODE_GENERATOR_H_ | 93 #endif // VM_CODE_GENERATOR_H_ |
OLD | NEW |