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

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

Issue 1404163002: VM: Precompile method extractors for implicit and explicit closurization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed missing precompiled functions with hash-closurization 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void ClearAllCode(); 78 void ClearAllCode();
79 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]); 79 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]);
80 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]); 80 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]);
81 void Iterate(); 81 void Iterate();
82 void CleanUp(); 82 void CleanUp();
83 83
84 void AddCalleesOf(const Function& function); 84 void AddCalleesOf(const Function& function);
85 void AddClosureCall(const ICData& call_site); 85 void AddClosureCall(const ICData& call_site);
86 void AddField(const Field& field); 86 void AddField(const Field& field);
87 void AddFunction(const Function& function); 87 void AddFunction(const Function& function);
88 void AddImplicitClosure(const Function& function, const String& selector);
88 void AddClass(const Class& cls); 89 void AddClass(const Class& cls);
89 void AddSelector(const String& selector); 90 void AddSelector(const String& selector);
90 bool IsSent(const String& selector); 91 bool IsSent(const String& selector);
91 92
92 void ProcessFunction(const Function& function); 93 void ProcessFunction(const Function& function);
93 void CheckForNewDynamicFunctions(); 94 void CheckForNewDynamicFunctions();
94 95
95 void DropUncompiledFunctions(); 96 void DropUncompiledFunctions();
96 void BindStaticCalls(); 97 void BindStaticCalls();
97 void DedupStackmaps(); 98 void DedupStackmaps();
(...skipping 25 matching lines...) Expand all
123 const GrowableObjectArray& libraries_; 124 const GrowableObjectArray& libraries_;
124 const GrowableObjectArray& pending_functions_; 125 const GrowableObjectArray& pending_functions_;
125 const GrowableObjectArray& collected_closures_; 126 const GrowableObjectArray& collected_closures_;
126 SymbolSet sent_selectors_; 127 SymbolSet sent_selectors_;
127 Error& error_; 128 Error& error_;
128 }; 129 };
129 130
130 } // namespace dart 131 } // namespace dart
131 132
132 #endif // VM_PRECOMPILER_H_ 133 #endif // VM_PRECOMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/precompiler.cc » ('j') | runtime/vm/precompiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698