| 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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1504 MemberKind kind) const; | 1504 MemberKind kind) const; |
| 1505 RawField* LookupField(const String& name, MemberKind kind) const; | 1505 RawField* LookupField(const String& name, MemberKind kind) const; |
| 1506 | 1506 |
| 1507 RawFunction* LookupAccessorFunction(const char* prefix, | 1507 RawFunction* LookupAccessorFunction(const char* prefix, |
| 1508 intptr_t prefix_length, | 1508 intptr_t prefix_length, |
| 1509 const String& name) const; | 1509 const String& name) const; |
| 1510 | 1510 |
| 1511 // Allocate an instance class which has a VM implementation. | 1511 // Allocate an instance class which has a VM implementation. |
| 1512 template <class FakeInstance> static RawClass* New(intptr_t id); | 1512 template <class FakeInstance> static RawClass* New(intptr_t id); |
| 1513 | 1513 |
| 1514 // Helper that calls 'Class::New<Instance>(kIllegalCid)'. |
| 1515 static RawClass* NewInstanceClass(); |
| 1516 |
| 1514 // Check the subtype or 'more specific' relationship. | 1517 // Check the subtype or 'more specific' relationship. |
| 1515 bool TypeTest(TypeTestKind test_kind, | 1518 bool TypeTest(TypeTestKind test_kind, |
| 1516 const TypeArguments& type_arguments, | 1519 const TypeArguments& type_arguments, |
| 1517 const Class& other, | 1520 const Class& other, |
| 1518 const TypeArguments& other_type_arguments, | 1521 const TypeArguments& other_type_arguments, |
| 1519 Error* bound_error, | 1522 Error* bound_error, |
| 1520 TrailPtr bound_trail, | 1523 TrailPtr bound_trail, |
| 1521 Heap::Space space) const; | 1524 Heap::Space space) const; |
| 1522 | 1525 |
| 1523 static bool TypeTestNonRecursive( | 1526 static bool TypeTestNonRecursive( |
| (...skipping 7078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8602 | 8605 |
| 8603 | 8606 |
| 8604 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8607 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8605 intptr_t index) { | 8608 intptr_t index) { |
| 8606 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8609 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8607 } | 8610 } |
| 8608 | 8611 |
| 8609 } // namespace dart | 8612 } // namespace dart |
| 8610 | 8613 |
| 8611 #endif // VM_OBJECT_H_ | 8614 #endif // VM_OBJECT_H_ |
| OLD | NEW |