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 |
(...skipping 10 matching lines...) Expand all Loading... |
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(StaticCallMissHandlerTwoArgs); | 30 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerTwoArgs); |
31 DECLARE_RUNTIME_ENTRY(InstanceFunctionLookup); | |
32 DECLARE_RUNTIME_ENTRY(Instanceof); | 31 DECLARE_RUNTIME_ENTRY(Instanceof); |
33 DECLARE_RUNTIME_ENTRY(TypeCheck); | 32 DECLARE_RUNTIME_ENTRY(TypeCheck); |
34 DECLARE_RUNTIME_ENTRY(BadTypeError); | 33 DECLARE_RUNTIME_ENTRY(BadTypeError); |
35 DECLARE_RUNTIME_ENTRY(NonBoolTypeError); | 34 DECLARE_RUNTIME_ENTRY(NonBoolTypeError); |
36 DECLARE_RUNTIME_ENTRY(InstantiateType); | 35 DECLARE_RUNTIME_ENTRY(InstantiateType); |
37 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); | 36 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); |
38 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); | 37 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction); |
39 DECLARE_RUNTIME_ENTRY(MegamorphicCacheMissHandler); | 38 DECLARE_RUNTIME_ENTRY(MegamorphicCacheMissHandler); |
40 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); | 39 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction); |
41 DECLARE_RUNTIME_ENTRY(TraceICCall); | 40 DECLARE_RUNTIME_ENTRY(TraceICCall); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 enum DeoptReasonId { | 81 enum DeoptReasonId { |
83 #define DEFINE_ENUM_LIST(name) kDeopt##name, | 82 #define DEFINE_ENUM_LIST(name) kDeopt##name, |
84 DEOPT_REASONS(DEFINE_ENUM_LIST) | 83 DEOPT_REASONS(DEFINE_ENUM_LIST) |
85 #undef DEFINE_ENUM_LIST | 84 #undef DEFINE_ENUM_LIST |
86 }; | 85 }; |
87 | 86 |
88 | 87 |
89 const char* DeoptReasonToText(intptr_t deopt_id); | 88 const char* DeoptReasonToText(intptr_t deopt_id); |
90 | 89 |
91 | 90 |
92 RawCode* ResolveCompileInstanceCallTarget(const Instance& receiver, | |
93 const ICData& ic_data); | |
94 | |
95 void DeoptimizeAt(const Code& optimized_code, uword pc); | 91 void DeoptimizeAt(const Code& optimized_code, uword pc); |
96 void DeoptimizeAll(); | 92 void DeoptimizeAll(); |
97 | 93 |
98 double DartModulo(double a, double b); | 94 double DartModulo(double a, double b); |
99 void SinCos(double arg, double* sin_res, double* cos_res); | 95 void SinCos(double arg, double* sin_res, double* cos_res); |
100 | 96 |
101 } // namespace dart | 97 } // namespace dart |
102 | 98 |
103 #endif // VM_CODE_GENERATOR_H_ | 99 #endif // VM_CODE_GENERATOR_H_ |
OLD | NEW |