Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: runtime/vm/precompiler.h

Issue 1420533006: Allow for multiple rounds of precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: land with one round Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698