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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 9417 matching lines...) Expand 10 before | Expand all | Expand 10 after
9428 Object& obj = Object::Handle(); 9428 Object& obj = Object::Handle();
9429 if (FLAG_use_lib_cache && LookupResolvedNamesCache(name, &obj)) { 9429 if (FLAG_use_lib_cache && LookupResolvedNamesCache(name, &obj)) {
9430 return obj.raw(); 9430 return obj.raw();
9431 } 9431 }
9432 obj = LookupLocalObject(name); 9432 obj = LookupLocalObject(name);
9433 if (!obj.IsNull()) { 9433 if (!obj.IsNull()) {
9434 // Names that are in this library's dictionary and are unmangled 9434 // Names that are in this library's dictionary and are unmangled
9435 // are not cached. This reduces the size of the the cache. 9435 // are not cached. This reduces the size of the the cache.
9436 return obj.raw(); 9436 return obj.raw();
9437 } 9437 }
9438 String& accessor_name = String::Handle(Field::GetterName(name)); 9438 String& accessor_name = String::Handle(Field::LookupGetterSymbol(name));
9439 obj = LookupLocalObject(accessor_name); 9439 if (!accessor_name.IsNull()) {
9440 obj = LookupLocalObject(accessor_name);
9441 }
9440 if (obj.IsNull()) { 9442 if (obj.IsNull()) {
9441 accessor_name = Field::SetterName(name); 9443 accessor_name = Field::LookupSetterSymbol(name);
9442 obj = LookupLocalObject(accessor_name); 9444 if (!accessor_name.IsNull()) {
9445 obj = LookupLocalObject(accessor_name);
9446 }
9443 if (obj.IsNull() && !ShouldBePrivate(name)) { 9447 if (obj.IsNull() && !ShouldBePrivate(name)) {
9444 obj = LookupImportedObject(name); 9448 obj = LookupImportedObject(name);
9445 } 9449 }
9446 } 9450 }
9447 AddToResolvedNamesCache(name, obj); 9451 AddToResolvedNamesCache(name, obj);
9448 return obj.raw(); 9452 return obj.raw();
9449 } 9453 }
9450 9454
9451 9455
9452 class StringEqualsTraits { 9456 class StringEqualsTraits {
(...skipping 12404 matching lines...) Expand 10 before | Expand all | Expand 10 after
21857 return UserTag::null(); 21861 return UserTag::null();
21858 } 21862 }
21859 21863
21860 21864
21861 const char* UserTag::ToCString() const { 21865 const char* UserTag::ToCString() const {
21862 const String& tag_label = String::Handle(label()); 21866 const String& tag_label = String::Handle(label());
21863 return tag_label.ToCString(); 21867 return tag_label.ToCString();
21864 } 21868 }
21865 21869
21866 } // namespace dart 21870 } // namespace dart
OLDNEW
« 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