Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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::GetterSymbol(name)); |
|
siva
2016/04/04 22:45:38
Is this really correct? It ends up adding this nam
srdjan
2016/04/04 23:22:49
Done.
| |
| 9439 obj = LookupLocalObject(accessor_name); | 9439 obj = LookupLocalObject(accessor_name); |
| 9440 if (obj.IsNull()) { | 9440 if (obj.IsNull()) { |
| 9441 accessor_name = Field::SetterName(name); | 9441 accessor_name = Field::SetterSymbol(name); |
|
siva
2016/04/04 22:45:38
Ditto about adding the setter name to the symbol t
srdjan
2016/04/04 23:22:49
Done.
| |
| 9442 obj = LookupLocalObject(accessor_name); | 9442 obj = LookupLocalObject(accessor_name); |
| 9443 if (obj.IsNull() && !ShouldBePrivate(name)) { | 9443 if (obj.IsNull() && !ShouldBePrivate(name)) { |
| 9444 obj = LookupImportedObject(name); | 9444 obj = LookupImportedObject(name); |
| 9445 } | 9445 } |
| 9446 } | 9446 } |
| 9447 AddToResolvedNamesCache(name, obj); | 9447 AddToResolvedNamesCache(name, obj); |
| 9448 return obj.raw(); | 9448 return obj.raw(); |
| 9449 } | 9449 } |
| 9450 | 9450 |
| 9451 | 9451 |
| (...skipping 12405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 21857 return UserTag::null(); | 21857 return UserTag::null(); |
| 21858 } | 21858 } |
| 21859 | 21859 |
| 21860 | 21860 |
| 21861 const char* UserTag::ToCString() const { | 21861 const char* UserTag::ToCString() const { |
| 21862 const String& tag_label = String::Handle(label()); | 21862 const String& tag_label = String::Handle(label()); |
| 21863 return tag_label.ToCString(); | 21863 return tag_label.ToCString(); |
| 21864 } | 21864 } |
| 21865 | 21865 |
| 21866 } // namespace dart | 21866 } // namespace dart |
| OLD | NEW |