| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 void AddInstantiatedClass(const Class& cls); | 110 void AddInstantiatedClass(const Class& cls); |
| 111 void AddSelector(const String& selector); | 111 void AddSelector(const String& selector); |
| 112 bool IsSent(const String& selector); | 112 bool IsSent(const String& selector); |
| 113 | 113 |
| 114 void ProcessFunction(const Function& function); | 114 void ProcessFunction(const Function& function); |
| 115 void CheckForNewDynamicFunctions(); | 115 void CheckForNewDynamicFunctions(); |
| 116 | 116 |
| 117 void DropUncompiledFunctions(); | 117 void DropUncompiledFunctions(); |
| 118 void BindStaticCalls(); | 118 void BindStaticCalls(); |
| 119 void DedupStackmaps(); | 119 void DedupStackmaps(); |
| 120 void ResetPrecompilerState(); |
| 120 | 121 |
| 121 class FunctionVisitor : public ValueObject { | 122 class FunctionVisitor : public ValueObject { |
| 122 public: | 123 public: |
| 123 virtual ~FunctionVisitor() {} | 124 virtual ~FunctionVisitor() {} |
| 124 virtual void VisitFunction(const Function& function) = 0; | 125 virtual void VisitFunction(const Function& function) = 0; |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 void VisitFunctions(FunctionVisitor* visitor); | 128 void VisitFunctions(FunctionVisitor* visitor); |
| 128 | 129 |
| 129 void FinalizeAllClasses(); | 130 void FinalizeAllClasses(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 147 const GrowableObjectArray& libraries_; | 148 const GrowableObjectArray& libraries_; |
| 148 const GrowableObjectArray& pending_functions_; | 149 const GrowableObjectArray& pending_functions_; |
| 149 SymbolSet sent_selectors_; | 150 SymbolSet sent_selectors_; |
| 150 FunctionSet enqueued_functions_; | 151 FunctionSet enqueued_functions_; |
| 151 Error& error_; | 152 Error& error_; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace dart | 155 } // namespace dart |
| 155 | 156 |
| 156 #endif // VM_PRECOMPILER_H_ | 157 #endif // VM_PRECOMPILER_H_ |
| OLD | NEW |