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