OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_PRECOMPILER_H_ | 5 #ifndef VM_PRECOMPILER_H_ |
6 #define VM_PRECOMPILER_H_ | 6 #define VM_PRECOMPILER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/hash_map.h" | 9 #include "vm/hash_map.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void AddField(const Field& field); | 97 void AddField(const Field& field); |
98 void AddFunction(const Function& function); | 98 void AddFunction(const Function& function); |
99 void AddClass(const Class& cls); | 99 void AddClass(const Class& cls); |
100 void AddSelector(const String& selector); | 100 void AddSelector(const String& selector); |
101 bool IsSent(const String& selector); | 101 bool IsSent(const String& selector); |
102 | 102 |
103 void ProcessFunction(const Function& function); | 103 void ProcessFunction(const Function& function); |
104 void CheckForNewDynamicFunctions(); | 104 void CheckForNewDynamicFunctions(); |
105 | 105 |
106 void DropUncompiledFunctions(); | 106 void DropUncompiledFunctions(); |
| 107 void BindStaticCalls(); |
| 108 void BindStaticCalls(const Function& function); |
107 | 109 |
108 Thread* thread() const { return thread_; } | 110 Thread* thread() const { return thread_; } |
109 Zone* zone() const { return zone_; } | 111 Zone* zone() const { return zone_; } |
110 Isolate* isolate() const { return isolate_; } | 112 Isolate* isolate() const { return isolate_; } |
111 | 113 |
112 Thread* thread_; | 114 Thread* thread_; |
113 Zone* zone_; | 115 Zone* zone_; |
114 Isolate* isolate_; | 116 Isolate* isolate_; |
115 | 117 |
116 const bool reset_fields_; | 118 const bool reset_fields_; |
117 | 119 |
118 bool changed_; | 120 bool changed_; |
119 intptr_t function_count_; | 121 intptr_t function_count_; |
120 intptr_t class_count_; | 122 intptr_t class_count_; |
121 intptr_t selector_count_; | 123 intptr_t selector_count_; |
122 intptr_t dropped_function_count_; | 124 intptr_t dropped_function_count_; |
123 | 125 |
124 const GrowableObjectArray& libraries_; | 126 const GrowableObjectArray& libraries_; |
125 const GrowableObjectArray& pending_functions_; | 127 const GrowableObjectArray& pending_functions_; |
126 const GrowableObjectArray& collected_closures_; | 128 const GrowableObjectArray& collected_closures_; |
127 SymbolSet sent_selectors_; | 129 SymbolSet sent_selectors_; |
128 Error& error_; | 130 Error& error_; |
129 }; | 131 }; |
130 | 132 |
131 } // namespace dart | 133 } // namespace dart |
132 | 134 |
133 #endif // VM_PRECOMPILER_H_ | 135 #endif // VM_PRECOMPILER_H_ |
OLD | NEW |