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

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

Issue 1371453002: Precompile invoke-field-dispatchers for closures. (Closed) Base URL: git@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
« no previous file with comments | « runtime/vm/parser.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698