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

Unified Diff: runtime/vm/object.cc

Issue 2783703005: Fix inconsistent removal of imports during tree-shaking. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | 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 807f7c30ddfe922632dc989c28321bb00fef0667..f5ef7ea70b9250ae19dea4ca0f802b004f6c5ad5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10757,6 +10757,7 @@ bool Library::ImportsCorelib() const {
void Library::DropDependencies() const {
StorePointer(&raw_ptr()->imports_, Object::empty_array().raw());
StorePointer(&raw_ptr()->exports_, Object::empty_array().raw());
+ StoreNonPointer(&raw_ptr()->num_imports_, 0);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698