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

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

Issue 1392893003: In precompilation, finalize all classes eagerly. Use the stable class hierarchy for doing CHA based… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void DedupStackmaps(); 97 void DedupStackmaps();
98 98
99 class FunctionVisitor : public ValueObject { 99 class FunctionVisitor : public ValueObject {
100 public: 100 public:
101 virtual ~FunctionVisitor() {} 101 virtual ~FunctionVisitor() {}
102 virtual void VisitFunction(const Function& function) = 0; 102 virtual void VisitFunction(const Function& function) = 0;
103 }; 103 };
104 104
105 void VisitFunctions(FunctionVisitor* visitor); 105 void VisitFunctions(FunctionVisitor* visitor);
106 106
107 void FinalizeAllClasses();
108
107 Thread* thread() const { return thread_; } 109 Thread* thread() const { return thread_; }
108 Zone* zone() const { return zone_; } 110 Zone* zone() const { return zone_; }
109 Isolate* isolate() const { return isolate_; } 111 Isolate* isolate() const { return isolate_; }
110 112
111 Thread* thread_; 113 Thread* thread_;
112 Zone* zone_; 114 Zone* zone_;
113 Isolate* isolate_; 115 Isolate* isolate_;
114 116
115 const bool reset_fields_; 117 const bool reset_fields_;
116 118
117 bool changed_; 119 bool changed_;
118 intptr_t function_count_; 120 intptr_t function_count_;
119 intptr_t class_count_; 121 intptr_t class_count_;
120 intptr_t selector_count_; 122 intptr_t selector_count_;
121 intptr_t dropped_function_count_; 123 intptr_t dropped_function_count_;
122 124
123 const GrowableObjectArray& libraries_; 125 const GrowableObjectArray& libraries_;
124 const GrowableObjectArray& pending_functions_; 126 const GrowableObjectArray& pending_functions_;
125 const GrowableObjectArray& collected_closures_; 127 const GrowableObjectArray& collected_closures_;
126 SymbolSet sent_selectors_; 128 SymbolSet sent_selectors_;
127 Error& error_; 129 Error& error_;
128 }; 130 };
129 131
130 } // namespace dart 132 } // namespace dart
131 133
132 #endif // VM_PRECOMPILER_H_ 134 #endif // VM_PRECOMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698