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

Unified Diff: runtime/vm/object.cc

Issue 1686773002: Precompilation: drop unused types and type arguments and empty classes and libraries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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.h ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 71cf46c80aa6abf0e4c7f05e21e3daf16ff94b0a..3e53c376d048a6f9d0dd643a8fae92cc16464f7f 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -3507,6 +3507,11 @@ void Class::AddDirectSubclass(const Class& subclass) const {
}
+void Class::ClearDirectSubclasses() const {
+ StorePointer(&raw_ptr()->direct_subclasses_, GrowableObjectArray::null());
+}
+
+
RawArray* Class::constants() const {
return raw_ptr()->constants_;
}
@@ -9720,6 +9725,12 @@ bool Library::ImportsCorelib() const {
}
+void Library::DropDependencies() const {
+ StorePointer(&raw_ptr()->imports_, Array::null());
+ StorePointer(&raw_ptr()->exports_, Array::null());
+}
+
+
void Library::AddImport(const Namespace& ns) const {
Array& imports = Array::Handle(this->imports());
intptr_t capacity = imports.Length();
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698