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 |
(...skipping 10 matching lines...) Expand all Loading... |
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(BreakpointStaticHandler); | 30 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler); |
| 31 DECLARE_RUNTIME_ENTRY(BreakpointReturnHandler); |
31 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler); | 32 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler); |
32 DECLARE_RUNTIME_ENTRY(CloneContext); | 33 DECLARE_RUNTIME_ENTRY(CloneContext); |
33 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); | 34 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); |
34 DECLARE_RUNTIME_ENTRY(Deoptimize); | 35 DECLARE_RUNTIME_ENTRY(Deoptimize); |
35 DECLARE_RUNTIME_ENTRY(FixCallersTarget); | 36 DECLARE_RUNTIME_ENTRY(FixCallersTarget); |
36 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); | 37 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); |
37 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); | 38 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); |
38 DECLARE_RUNTIME_ENTRY(Instanceof); | 39 DECLARE_RUNTIME_ENTRY(Instanceof); |
39 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); | 40 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments); |
40 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); | 41 DECLARE_RUNTIME_ENTRY(InvokeImplicitClosureFunction); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 private: | 116 private: |
116 static void EnterFunctionAt(int i, | 117 static void EnterFunctionAt(int i, |
117 const Array& cache, | 118 const Array& cache, |
118 const Function& function, | 119 const Function& function, |
119 int num_arguments, | 120 int num_arguments, |
120 int num_named_arguments); | 121 int num_named_arguments); |
121 | 122 |
122 const Class& class_; | 123 const Class& class_; |
123 }; | 124 }; |
124 | 125 |
| 126 |
| 127 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, |
| 128 const Instance& receiver); |
| 129 |
125 } // namespace dart | 130 } // namespace dart |
126 | 131 |
127 #endif // VM_CODE_GENERATOR_H_ | 132 #endif // VM_CODE_GENERATOR_H_ |
OLD | NEW |