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 namespace dart { | 11 namespace dart { |
12 | 12 |
13 class Array; | 13 class Array; |
14 template <typename T> class GrowableArray; | 14 template <typename T> class GrowableArray; |
15 class ICData; | 15 class ICData; |
16 class Instance; | 16 class Instance; |
17 | 17 |
18 // Declaration of runtime entries called from stub or generated code. | 18 // Declaration of runtime entries called from stub or generated code. |
19 DECLARE_RUNTIME_ENTRY(AllocateArray); | 19 DECLARE_RUNTIME_ENTRY(AllocateArray); |
20 DECLARE_RUNTIME_ENTRY(AllocateContext); | 20 DECLARE_RUNTIME_ENTRY(AllocateContext); |
21 DECLARE_RUNTIME_ENTRY(AllocateObject); | 21 DECLARE_RUNTIME_ENTRY(AllocateObject); |
22 DECLARE_RUNTIME_ENTRY(BreakpointRuntimeHandler); | 22 DECLARE_RUNTIME_ENTRY(BreakpointRuntimeHandler); |
23 DECLARE_RUNTIME_ENTRY(SingleStepHandler); | 23 DECLARE_RUNTIME_ENTRY(SingleStepHandler); |
24 DECLARE_RUNTIME_ENTRY(CloneContext); | 24 DECLARE_RUNTIME_ENTRY(CloneContext); |
25 DECLARE_RUNTIME_ENTRY(Deoptimize); | 25 DECLARE_RUNTIME_ENTRY(Deoptimize); |
26 DECLARE_RUNTIME_ENTRY(FixCallersTarget); | 26 DECLARE_RUNTIME_ENTRY(FixCallersTarget); |
27 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); | 27 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); |
28 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); | 28 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); |
29 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs); | 29 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs); |
| 30 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerOneArg); |
30 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerTwoArgs); | 31 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerTwoArgs); |
31 DECLARE_RUNTIME_ENTRY(Instanceof); | 32 DECLARE_RUNTIME_ENTRY(Instanceof); |
32 DECLARE_RUNTIME_ENTRY(TypeCheck); | 33 DECLARE_RUNTIME_ENTRY(TypeCheck); |
33 DECLARE_RUNTIME_ENTRY(BadTypeError); | 34 DECLARE_RUNTIME_ENTRY(BadTypeError); |
34 DECLARE_RUNTIME_ENTRY(NonBoolTypeError); | 35 DECLARE_RUNTIME_ENTRY(NonBoolTypeError); |
35 DECLARE_RUNTIME_ENTRY(InstantiateType); | 36 DECLARE_RUNTIME_ENTRY(InstantiateType); |
36 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); | 37 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); |
37 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); | 38 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); |
38 DECLARE_RUNTIME_ENTRY(MegamorphicCacheMissHandler); | 39 DECLARE_RUNTIME_ENTRY(MegamorphicCacheMissHandler); |
39 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); | 40 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); |
(...skipping 12 matching lines...) Expand all Loading... |
52 | 53 |
53 void DeoptimizeAt(const Code& optimized_code, uword pc); | 54 void DeoptimizeAt(const Code& optimized_code, uword pc); |
54 void DeoptimizeAll(); | 55 void DeoptimizeAll(); |
55 | 56 |
56 double DartModulo(double a, double b); | 57 double DartModulo(double a, double b); |
57 void SinCos(double arg, double* sin_res, double* cos_res); | 58 void SinCos(double arg, double* sin_res, double* cos_res); |
58 | 59 |
59 } // namespace dart | 60 } // namespace dart |
60 | 61 |
61 #endif // VM_CODE_GENERATOR_H_ | 62 #endif // VM_CODE_GENERATOR_H_ |
OLD | NEW |