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(AllocateClosure); | 20 DECLARE_RUNTIME_ENTRY(AllocateClosure); |
21 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); | 21 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); |
22 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); | 22 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); |
23 DECLARE_RUNTIME_ENTRY(AllocateContext); | 23 DECLARE_RUNTIME_ENTRY(AllocateContext); |
24 DECLARE_RUNTIME_ENTRY(AllocateObject); | 24 DECLARE_RUNTIME_ENTRY(AllocateObject); |
25 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck); | 25 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck); |
26 DECLARE_RUNTIME_ENTRY(ArgumentDefinitionTest); | 26 DECLARE_RUNTIME_ENTRY(ArgumentDefinitionTest); |
| 27 DECLARE_RUNTIME_ENTRY(BreakpointClosureHandler); |
27 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler); | 28 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler); |
28 DECLARE_RUNTIME_ENTRY(BreakpointReturnHandler); | 29 DECLARE_RUNTIME_ENTRY(BreakpointReturnHandler); |
29 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler); | 30 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler); |
30 DECLARE_RUNTIME_ENTRY(CloneContext); | 31 DECLARE_RUNTIME_ENTRY(CloneContext); |
31 DECLARE_RUNTIME_ENTRY(Deoptimize); | 32 DECLARE_RUNTIME_ENTRY(Deoptimize); |
32 DECLARE_RUNTIME_ENTRY(FixCallersTarget); | 33 DECLARE_RUNTIME_ENTRY(FixCallersTarget); |
33 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); | 34 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); |
34 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); | 35 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); |
35 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs); | 36 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs); |
36 DECLARE_RUNTIME_ENTRY(InstanceFunctionLookup); | 37 DECLARE_RUNTIME_ENTRY(InstanceFunctionLookup); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 97 |
97 void DeoptimizeAt(const Code& optimized_code, uword pc); | 98 void DeoptimizeAt(const Code& optimized_code, uword pc); |
98 void DeoptimizeAll(); | 99 void DeoptimizeAll(); |
99 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); | 100 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); |
100 | 101 |
101 double DartModulo(double a, double b); | 102 double DartModulo(double a, double b); |
102 | 103 |
103 } // namespace dart | 104 } // namespace dart |
104 | 105 |
105 #endif // VM_CODE_GENERATOR_H_ | 106 #endif // VM_CODE_GENERATOR_H_ |
OLD | NEW |