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

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: Created 4 years, 11 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
Index: runtime/vm/precompiler.h
diff --git a/runtime/vm/precompiler.h b/runtime/vm/precompiler.h
index da267c0c92570a6e1134a66e1564eb044b32416c..2999679410dfa8259896da585e99153d23cf8939 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 {
@@ -158,9 +159,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[]);

Powered by Google App Engine
This is Rietveld 408576698