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 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 return raw() == CoreLibrary(); | 2057 return raw() == CoreLibrary(); |
2058 } | 2058 } |
2059 | 2059 |
2060 static RawLibrary* LookupLibrary(const String& url); | 2060 static RawLibrary* LookupLibrary(const String& url); |
2061 static RawLibrary* GetLibrary(intptr_t index); | 2061 static RawLibrary* GetLibrary(intptr_t index); |
2062 static bool IsKeyUsed(intptr_t key); | 2062 static bool IsKeyUsed(intptr_t key); |
2063 | 2063 |
2064 static void InitASyncLibrary(Isolate* isolate); | 2064 static void InitASyncLibrary(Isolate* isolate); |
2065 static void InitCoreLibrary(Isolate* isolate); | 2065 static void InitCoreLibrary(Isolate* isolate); |
2066 static void InitCollectionLibrary(Isolate* isolate); | 2066 static void InitCollectionLibrary(Isolate* isolate); |
| 2067 static void InitCollectionDevLibrary(Isolate* isolate); |
2067 static void InitMathLibrary(Isolate* isolate); | 2068 static void InitMathLibrary(Isolate* isolate); |
2068 static void InitIsolateLibrary(Isolate* isolate); | 2069 static void InitIsolateLibrary(Isolate* isolate); |
2069 static void InitMirrorsLibrary(Isolate* isolate); | 2070 static void InitMirrorsLibrary(Isolate* isolate); |
2070 static void InitScalarlistLibrary(Isolate* isolate); | 2071 static void InitScalarlistLibrary(Isolate* isolate); |
2071 static void InitNativeWrappersLibrary(Isolate* isolate); | 2072 static void InitNativeWrappersLibrary(Isolate* isolate); |
2072 | 2073 |
2073 static RawLibrary* ASyncLibrary(); | 2074 static RawLibrary* ASyncLibrary(); |
2074 static RawLibrary* CoreLibrary(); | 2075 static RawLibrary* CoreLibrary(); |
2075 static RawLibrary* CollectionLibrary(); | 2076 static RawLibrary* CollectionLibrary(); |
| 2077 static RawLibrary* CollectionDevLibrary(); |
2076 static RawLibrary* MathLibrary(); | 2078 static RawLibrary* MathLibrary(); |
2077 static RawLibrary* IsolateLibrary(); | 2079 static RawLibrary* IsolateLibrary(); |
2078 static RawLibrary* MirrorsLibrary(); | 2080 static RawLibrary* MirrorsLibrary(); |
2079 static RawLibrary* ScalarlistLibrary(); | 2081 static RawLibrary* ScalarlistLibrary(); |
2080 static RawLibrary* NativeWrappersLibrary(); | 2082 static RawLibrary* NativeWrappersLibrary(); |
2081 | 2083 |
2082 // Eagerly compile all classes and functions in the library. | 2084 // Eagerly compile all classes and functions in the library. |
2083 static RawError* CompileAll(); | 2085 static RawError* CompileAll(); |
2084 | 2086 |
2085 private: | 2087 private: |
(...skipping 4186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6272 | 6274 |
6273 | 6275 |
6274 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6276 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6275 intptr_t index) { | 6277 intptr_t index) { |
6276 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6278 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6277 } | 6279 } |
6278 | 6280 |
6279 } // namespace dart | 6281 } // namespace dart |
6280 | 6282 |
6281 #endif // VM_OBJECT_H_ | 6283 #endif // VM_OBJECT_H_ |
OLD | NEW |