| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 static RawClass* NewNativeWrapper(const Library& library, | 829 static RawClass* NewNativeWrapper(const Library& library, |
| 830 const String& name, | 830 const String& name, |
| 831 int num_fields); | 831 int num_fields); |
| 832 | 832 |
| 833 // Allocate the raw string classes. | 833 // Allocate the raw string classes. |
| 834 static RawClass* NewStringClass(intptr_t class_id); | 834 static RawClass* NewStringClass(intptr_t class_id); |
| 835 | 835 |
| 836 // Allocate the raw TypedData classes. | 836 // Allocate the raw TypedData classes. |
| 837 static RawClass* NewTypedDataClass(intptr_t class_id); | 837 static RawClass* NewTypedDataClass(intptr_t class_id); |
| 838 | 838 |
| 839 // Allocate the raw TypedDataView classes. |
| 840 static RawClass* NewTypedDataViewClass(intptr_t class_id); |
| 841 |
| 839 // Allocate the raw ExternalTypedData classes. | 842 // Allocate the raw ExternalTypedData classes. |
| 840 static RawClass* NewExternalTypedDataClass(intptr_t class_id); | 843 static RawClass* NewExternalTypedDataClass(intptr_t class_id); |
| 841 | 844 |
| 842 // Allocate a class representing a function signature described by | 845 // Allocate a class representing a function signature described by |
| 843 // signature_function, which must be a closure function or a signature | 846 // signature_function, which must be a closure function or a signature |
| 844 // function. | 847 // function. |
| 845 // The class may be type parameterized unless the signature_function is in a | 848 // The class may be type parameterized unless the signature_function is in a |
| 846 // static scope. In that case, the type parameters are copied from the owner | 849 // static scope. In that case, the type parameters are copied from the owner |
| 847 // class of signature_function. | 850 // class of signature_function. |
| 848 // A null signature function may be passed in and patched later. See below. | 851 // A null signature function may be passed in and patched later. See below. |
| (...skipping 6082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6931 | 6934 |
| 6932 | 6935 |
| 6933 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6936 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6934 intptr_t index) { | 6937 intptr_t index) { |
| 6935 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6938 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6936 } | 6939 } |
| 6937 | 6940 |
| 6938 } // namespace dart | 6941 } // namespace dart |
| 6939 | 6942 |
| 6940 #endif // VM_OBJECT_H_ | 6943 #endif // VM_OBJECT_H_ |
| OLD | NEW |