| 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 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2156 | 2156 | 
| 2157   void AddExport(const Namespace& ns) const; | 2157   void AddExport(const Namespace& ns) const; | 
| 2158 | 2158 | 
| 2159   // Library imports. | 2159   // Library imports. | 
| 2160   void AddImport(const Namespace& ns) const; | 2160   void AddImport(const Namespace& ns) const; | 
| 2161   intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 2161   intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 
| 2162   RawNamespace* ImportAt(intptr_t index) const; | 2162   RawNamespace* ImportAt(intptr_t index) const; | 
| 2163   RawLibrary* ImportLibraryAt(intptr_t index) const; | 2163   RawLibrary* ImportLibraryAt(intptr_t index) const; | 
| 2164   bool ImportsCorelib() const; | 2164   bool ImportsCorelib() const; | 
| 2165 | 2165 | 
| 2166   RawFunction* LookupFunctionInSource(const String& script_url, |  | 
| 2167                                       intptr_t line_number) const; |  | 
| 2168   RawFunction* LookupFunctionInScript(const Script& script, | 2166   RawFunction* LookupFunctionInScript(const Script& script, | 
| 2169                                       intptr_t token_pos) const; | 2167                                       intptr_t token_pos) const; | 
| 2170 | 2168 | 
| 2171   // Resolving native methods for script loaded in the library. | 2169   // Resolving native methods for script loaded in the library. | 
| 2172   Dart_NativeEntryResolver native_entry_resolver() const { | 2170   Dart_NativeEntryResolver native_entry_resolver() const { | 
| 2173     return raw_ptr()->native_entry_resolver_; | 2171     return raw_ptr()->native_entry_resolver_; | 
| 2174   } | 2172   } | 
| 2175   void set_native_entry_resolver(Dart_NativeEntryResolver value) const { | 2173   void set_native_entry_resolver(Dart_NativeEntryResolver value) const { | 
| 2176     raw_ptr()->native_entry_resolver_ = value; | 2174     raw_ptr()->native_entry_resolver_ = value; | 
| 2177   } | 2175   } | 
| (...skipping 3590 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5768 | 5766 | 
| 5769 | 5767 | 
| 5770 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 5768 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 
| 5771                                                intptr_t index) { | 5769                                                intptr_t index) { | 
| 5772   return array.At((index * kEntryLength) + kTargetFunctionIndex); | 5770   return array.At((index * kEntryLength) + kTargetFunctionIndex); | 
| 5773 } | 5771 } | 
| 5774 | 5772 | 
| 5775 }  // namespace dart | 5773 }  // namespace dart | 
| 5776 | 5774 | 
| 5777 #endif  // VM_OBJECT_H_ | 5775 #endif  // VM_OBJECT_H_ | 
| OLD | NEW | 
|---|