| 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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 const TypeArguments& other_type_arguments, | 1478 const TypeArguments& other_type_arguments, |
| 1479 Error* bound_error, | 1479 Error* bound_error, |
| 1480 Heap::Space space); | 1480 Heap::Space space); |
| 1481 | 1481 |
| 1482 FINAL_HEAP_OBJECT_IMPLEMENTATION(Class, Object); | 1482 FINAL_HEAP_OBJECT_IMPLEMENTATION(Class, Object); |
| 1483 friend class AbstractType; | 1483 friend class AbstractType; |
| 1484 friend class Instance; | 1484 friend class Instance; |
| 1485 friend class Object; | 1485 friend class Object; |
| 1486 friend class Type; | 1486 friend class Type; |
| 1487 friend class Intrinsifier; | 1487 friend class Intrinsifier; |
| 1488 friend class Precompiler; |
| 1488 }; | 1489 }; |
| 1489 | 1490 |
| 1490 | 1491 |
| 1491 // Unresolved class is used for storing unresolved names which will be resolved | 1492 // Unresolved class is used for storing unresolved names which will be resolved |
| 1492 // to a class after all classes have been loaded and finalized. | 1493 // to a class after all classes have been loaded and finalized. |
| 1493 class UnresolvedClass : public Object { | 1494 class UnresolvedClass : public Object { |
| 1494 public: | 1495 public: |
| 1495 RawLibraryPrefix* library_prefix() const { | 1496 RawLibraryPrefix* library_prefix() const { |
| 1496 return raw_ptr()->library_prefix_; | 1497 return raw_ptr()->library_prefix_; |
| 1497 } | 1498 } |
| (...skipping 6721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8219 | 8220 |
| 8220 | 8221 |
| 8221 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8222 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8222 intptr_t index) { | 8223 intptr_t index) { |
| 8223 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8224 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8224 } | 8225 } |
| 8225 | 8226 |
| 8226 } // namespace dart | 8227 } // namespace dart |
| 8227 | 8228 |
| 8228 #endif // VM_OBJECT_H_ | 8229 #endif // VM_OBJECT_H_ |
| OLD | NEW |