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

Unified Diff: runtime/vm/kernel_to_il.h

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month 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/kernel_to_il.h
diff --git a/runtime/vm/kernel_to_il.h b/runtime/vm/kernel_to_il.h
index eb3beca9ce37eb05b396e045af259ec6b7b54d00..d0351b987fc99ccd618c2e5be70175b20e275831 100644
--- a/runtime/vm/kernel_to_il.h
+++ b/runtime/vm/kernel_to_il.h
@@ -205,11 +205,6 @@ class TranslationHelper {
Heap::Space allocation_space() { return allocation_space_; }
- // Set whether unfinalized classes should be finalized. The base class
- // implementation used at flow graph construction time looks up classes in the
- // VM's heap, all of which should already be finalized.
- virtual void SetFinalize(bool finalize) {}
-
RawInstance* Canonicalize(const Instance& instance);
const dart::String& DartString(const char* content) {
@@ -244,6 +239,8 @@ class TranslationHelper {
virtual RawLibrary* LookupLibraryByKernelLibrary(Library* library);
virtual RawClass* LookupClassByKernelClass(Class* klass);
+ RawUnresolvedClass* ToUnresolvedClass(Class* klass);
+
RawField* LookupFieldByKernelField(Field* field);
RawFunction* LookupStaticMethodByKernelProcedure(Procedure* procedure);
RawFunction* LookupConstructorByKernelConstructor(Constructor* constructor);
@@ -282,8 +279,9 @@ class TranslationHelper {
// runtime unless explicitly specified otherwise.
class DartTypeTranslator : public DartTypeVisitor {
public:
- DartTypeTranslator(TranslationHelper* helper, ActiveClass* active_class,
- bool finalize = true)
+ DartTypeTranslator(TranslationHelper* helper,
+ ActiveClass* active_class,
+ bool finalize = false)
: translation_helper_(*helper),
active_class_(active_class),
zone_(helper->zone()),

Powered by Google App Engine
This is Rietveld 408576698