| 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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 | 1956 |
| 1957 static RawLibrary* New(const String& url); | 1957 static RawLibrary* New(const String& url); |
| 1958 | 1958 |
| 1959 // Library scope name dictionary. | 1959 // Library scope name dictionary. |
| 1960 // | 1960 // |
| 1961 // TODO(turnidge): The Lookup functions are not consistent in how | 1961 // TODO(turnidge): The Lookup functions are not consistent in how |
| 1962 // they deal with private names. Go through and make them a bit | 1962 // they deal with private names. Go through and make them a bit |
| 1963 // more regular. | 1963 // more regular. |
| 1964 void AddClass(const Class& cls) const; | 1964 void AddClass(const Class& cls) const; |
| 1965 void AddObject(const Object& obj, const String& name) const; | 1965 void AddObject(const Object& obj, const String& name) const; |
| 1966 void ReplaceObject(const Object& obj, const String& name) const; |
| 1966 RawObject* LookupObject(const String& name) const; | 1967 RawObject* LookupObject(const String& name) const; |
| 1967 RawClass* LookupClass(const String& name) const; | 1968 RawClass* LookupClass(const String& name) const; |
| 1968 RawClass* LookupClassAllowPrivate(const String& name) const; | 1969 RawClass* LookupClassAllowPrivate(const String& name) const; |
| 1969 RawObject* LookupLocalObject(const String& name) const; | 1970 RawObject* LookupLocalObject(const String& name) const; |
| 1970 RawClass* LookupLocalClass(const String& name) const; | 1971 RawClass* LookupLocalClass(const String& name) const; |
| 1971 RawField* LookupFieldAllowPrivate(const String& name) const; | 1972 RawField* LookupFieldAllowPrivate(const String& name) const; |
| 1972 RawField* LookupLocalField(const String& name) const; | 1973 RawField* LookupLocalField(const String& name) const; |
| 1973 RawFunction* LookupFunctionAllowPrivate(const String& name) const; | 1974 RawFunction* LookupFunctionAllowPrivate(const String& name) const; |
| 1974 RawFunction* LookupLocalFunction(const String& name) const; | 1975 RawFunction* LookupLocalFunction(const String& name) const; |
| 1975 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; | 1976 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1991 intptr_t token_pos) const; | 1992 intptr_t token_pos) const; |
| 1992 | 1993 |
| 1993 // Resolving native methods for script loaded in the library. | 1994 // Resolving native methods for script loaded in the library. |
| 1994 Dart_NativeEntryResolver native_entry_resolver() const { | 1995 Dart_NativeEntryResolver native_entry_resolver() const { |
| 1995 return raw_ptr()->native_entry_resolver_; | 1996 return raw_ptr()->native_entry_resolver_; |
| 1996 } | 1997 } |
| 1997 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { | 1998 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { |
| 1998 raw_ptr()->native_entry_resolver_ = value; | 1999 raw_ptr()->native_entry_resolver_ = value; |
| 1999 } | 2000 } |
| 2000 | 2001 |
| 2002 RawError* Patch(const String& url, const String& source) const; |
| 2003 |
| 2001 RawString* PrivateName(const String& name) const; | 2004 RawString* PrivateName(const String& name) const; |
| 2002 | 2005 |
| 2003 intptr_t index() const { return raw_ptr()->index_; } | 2006 intptr_t index() const { return raw_ptr()->index_; } |
| 2004 void set_index(intptr_t value) const { | 2007 void set_index(intptr_t value) const { |
| 2005 raw_ptr()->index_ = value; | 2008 raw_ptr()->index_ = value; |
| 2006 } | 2009 } |
| 2007 | 2010 |
| 2008 void Register() const; | 2011 void Register() const; |
| 2009 | 2012 |
| 2010 bool IsDebuggable() const { | 2013 bool IsDebuggable() const { |
| (...skipping 3440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5451 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5454 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5452 return false; | 5455 return false; |
| 5453 } | 5456 } |
| 5454 } | 5457 } |
| 5455 return true; | 5458 return true; |
| 5456 } | 5459 } |
| 5457 | 5460 |
| 5458 } // namespace dart | 5461 } // namespace dart |
| 5459 | 5462 |
| 5460 #endif // VM_OBJECT_H_ | 5463 #endif // VM_OBJECT_H_ |
| OLD | NEW |