| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 explicit Precompiler(Thread* thread); | 85 explicit Precompiler(Thread* thread); |
| 86 | 86 |
| 87 void DoCompileAll(Dart_QualifiedFunctionName embedder_entry_points[]); | 87 void DoCompileAll(Dart_QualifiedFunctionName embedder_entry_points[]); |
| 88 void ClearAllCode(); | 88 void ClearAllCode(); |
| 89 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]); | 89 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]); |
| 90 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]); | 90 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]); |
| 91 void Iterate(); | 91 void Iterate(); |
| 92 void CleanUp(); | 92 void CleanUp(); |
| 93 | 93 |
| 94 void AddCalleesOf(const Function& function); | 94 void AddCalleesOf(const Function& function); |
| 95 void AddClosureCall(const ICData& call_site); |
| 95 void AddField(const Field& field); | 96 void AddField(const Field& field); |
| 96 void AddFunction(const Function& function); | 97 void AddFunction(const Function& function); |
| 97 void AddClass(const Class& cls); | 98 void AddClass(const Class& cls); |
| 98 void AddSelector(const String& selector); | 99 void AddSelector(const String& selector); |
| 99 bool IsSent(const String& selector); | 100 bool IsSent(const String& selector); |
| 100 | 101 |
| 101 void ProcessFunction(const Function& function); | 102 void ProcessFunction(const Function& function); |
| 102 void CheckForNewDynamicFunctions(); | 103 void CheckForNewDynamicFunctions(); |
| 103 | 104 |
| 104 void DropUncompiledFunctions(); | 105 void DropUncompiledFunctions(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 120 const GrowableObjectArray& libraries_; | 121 const GrowableObjectArray& libraries_; |
| 121 const GrowableObjectArray& pending_functions_; | 122 const GrowableObjectArray& pending_functions_; |
| 122 const GrowableObjectArray& collected_closures_; | 123 const GrowableObjectArray& collected_closures_; |
| 123 SymbolSet sent_selectors_; | 124 SymbolSet sent_selectors_; |
| 124 Error& error_; | 125 Error& error_; |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace dart | 128 } // namespace dart |
| 128 | 129 |
| 129 #endif // VM_PRECOMPILER_H_ | 130 #endif // VM_PRECOMPILER_H_ |
| OLD | NEW |