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

Unified Diff: runtime/vm/object.cc

Issue 1852393004: Fix background compilation issues when creating snapshots. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: more Created 4 years, 8 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/isolate.cc ('k') | runtime/vm/report.cc » ('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 9afe3fc37ceb3d49ad4d77fb5437a277ac0761c4..e899037a1c341b0721fc5cd72acd665857506de4 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -9435,11 +9435,15 @@ RawObject* Library::ResolveName(const String& name) const {
// are not cached. This reduces the size of the the cache.
return obj.raw();
}
- String& accessor_name = String::Handle(Field::GetterName(name));
- obj = LookupLocalObject(accessor_name);
- if (obj.IsNull()) {
- accessor_name = Field::SetterName(name);
+ String& accessor_name = String::Handle(Field::LookupGetterSymbol(name));
+ if (!accessor_name.IsNull()) {
obj = LookupLocalObject(accessor_name);
+ }
+ if (obj.IsNull()) {
+ accessor_name = Field::LookupSetterSymbol(name);
+ if (!accessor_name.IsNull()) {
+ obj = LookupLocalObject(accessor_name);
+ }
if (obj.IsNull() && !ShouldBePrivate(name)) {
obj = LookupImportedObject(name);
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698