| 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 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2568 // and setter name set:N. | 2568 // and setter name set:N. |
| 2569 // If the local dictionary contains no entry for these names, | 2569 // If the local dictionary contains no entry for these names, |
| 2570 // look in the scopes of all libraries that are imported | 2570 // look in the scopes of all libraries that are imported |
| 2571 // without a library prefix. | 2571 // without a library prefix. |
| 2572 RawObject* ResolveName(const String& name) const; | 2572 RawObject* ResolveName(const String& name) const; |
| 2573 | 2573 |
| 2574 void AddAnonymousClass(const Class& cls) const; | 2574 void AddAnonymousClass(const Class& cls) const; |
| 2575 | 2575 |
| 2576 void AddExport(const Namespace& ns) const; | 2576 void AddExport(const Namespace& ns) const; |
| 2577 | 2577 |
| 2578 void AddClassMetadata(const Class& cls, intptr_t token_pos) const; | 2578 void AddClassMetadata(const Class& cls, |
| 2579 const Class& toplevel_class, |
| 2580 intptr_t token_pos) const; |
| 2579 void AddFieldMetadata(const Field& field, intptr_t token_pos) const; | 2581 void AddFieldMetadata(const Field& field, intptr_t token_pos) const; |
| 2580 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const; | 2582 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const; |
| 2581 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const; | 2583 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const; |
| 2582 void AddTypeParameterMetadata(const TypeParameter& param, | 2584 void AddTypeParameterMetadata(const TypeParameter& param, |
| 2583 intptr_t token_pos) const; | 2585 intptr_t token_pos) const; |
| 2584 RawObject* GetMetadata(const Object& obj) const; | 2586 RawObject* GetMetadata(const Object& obj) const; |
| 2585 | 2587 |
| 2586 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; } | 2588 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; } |
| 2587 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; } | 2589 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; } |
| 2588 | 2590 |
| (...skipping 4205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6794 | 6796 |
| 6795 | 6797 |
| 6796 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6798 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6797 intptr_t index) { | 6799 intptr_t index) { |
| 6798 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6800 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6799 } | 6801 } |
| 6800 | 6802 |
| 6801 } // namespace dart | 6803 } // namespace dart |
| 6802 | 6804 |
| 6803 #endif // VM_OBJECT_H_ | 6805 #endif // VM_OBJECT_H_ |
| OLD | NEW |