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

Unified Diff: runtime/vm/symbols.cc

Issue 1953803003: Fix precompile build issue with IsString change. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-review-comments Created 4 years, 7 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
« runtime/vm/raw_object.h ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.cc
diff --git a/runtime/vm/symbols.cc b/runtime/vm/symbols.cc
index a138437c23d4e3739df28e0f96bb4b2f530df4e5..03aa24174caa185b397155d73f4670e57133c092 100644
--- a/runtime/vm/symbols.cc
+++ b/runtime/vm/symbols.cc
@@ -405,7 +405,7 @@ intptr_t Symbols::Compact(Isolate* isolate) {
zone_(thread->zone()) {}
void VisitObject(RawObject* obj) {
- if (obj->IsString() && obj->IsCanonical()) {
+ if (obj->IsCanonical() && obj->IsStringInstance()) {
symbols_->Add(&String::ZoneHandle(zone_, String::RawCast(obj)));
}
}
« runtime/vm/raw_object.h ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698