| 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(AllocateImplicitInstanceClosure); | 26 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); |
| 27 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); | 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(BreakpointHandler); |
| 30 DECLARE_RUNTIME_ENTRY(CloneContext); | 31 DECLARE_RUNTIME_ENTRY(CloneContext); |
| 31 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); | 32 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); |
| 32 DECLARE_RUNTIME_ENTRY(Deoptimize); | 33 DECLARE_RUNTIME_ENTRY(Deoptimize); |
| 33 DECLARE_RUNTIME_ENTRY(FixCallersTarget); | 34 DECLARE_RUNTIME_ENTRY(FixCallersTarget); |
| 34 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandler); | 35 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandler); |
| 35 DECLARE_RUNTIME_ENTRY(Instanceof); | 36 DECLARE_RUNTIME_ENTRY(Instanceof); |
| 36 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); | 37 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); |
| 37 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); | 38 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); |
| 38 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); | 39 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); |
| 39 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); | 40 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const Function& function, | 113 const Function& function, |
| 113 int num_arguments, | 114 int num_arguments, |
| 114 int num_named_arguments); | 115 int num_named_arguments); |
| 115 | 116 |
| 116 const Class& class_; | 117 const Class& class_; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace dart | 120 } // namespace dart |
| 120 | 121 |
| 121 #endif // VM_CODE_GENERATOR_H_ | 122 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |