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

Unified Diff: runtime/vm/precompiler.h

Issue 1663163003: Initial split of precompilation code from compiler.cc (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.h
diff --git a/runtime/vm/precompiler.h b/runtime/vm/precompiler.h
index f01679ac9f06b6eb46e4877ab50088bd5262b592..c32a955269d43287faa9958dac99e0cd8b9e3404 100644
--- a/runtime/vm/precompiler.h
+++ b/runtime/vm/precompiler.h
@@ -18,6 +18,7 @@ class Field;
class Function;
class GrowableObjectArray;
class RawError;
+class SequenceNode;
class String;
class SymbolKeyValueTrait {
@@ -181,9 +182,17 @@ class Precompiler : public ValueObject {
const String& fname,
Object* function);
+ static RawError* CompileFunction(Thread* thread, const Function& function);
+
+ static RawObject* EvaluateStaticInitializer(const Field& field);
+ static RawObject* ExecuteOnce(SequenceNode* fragment);
+
private:
Precompiler(Thread* thread, bool reset_fields);
+
+ static RawFunction* CompileStaticInitializer(const Field& field);
+
void DoCompileAll(Dart_QualifiedFunctionName embedder_entry_points[]);
void ClearAllCode();
void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]);
« 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