| 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 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2117 static void InitCoreLibrary(Isolate* isolate); | 2117 static void InitCoreLibrary(Isolate* isolate); |
| 2118 static void InitCollectionLibrary(Isolate* isolate); | 2118 static void InitCollectionLibrary(Isolate* isolate); |
| 2119 static void InitCollectionDevLibrary(Isolate* isolate); | 2119 static void InitCollectionDevLibrary(Isolate* isolate); |
| 2120 static void InitCryptoLibrary(Isolate* isolate); | 2120 static void InitCryptoLibrary(Isolate* isolate); |
| 2121 static void InitIsolateLibrary(Isolate* isolate); | 2121 static void InitIsolateLibrary(Isolate* isolate); |
| 2122 static void InitJsonLibrary(Isolate* isolate); | 2122 static void InitJsonLibrary(Isolate* isolate); |
| 2123 static void InitMathLibrary(Isolate* isolate); | 2123 static void InitMathLibrary(Isolate* isolate); |
| 2124 static void InitMirrorsLibrary(Isolate* isolate); | 2124 static void InitMirrorsLibrary(Isolate* isolate); |
| 2125 static void InitNativeWrappersLibrary(Isolate* isolate); | 2125 static void InitNativeWrappersLibrary(Isolate* isolate); |
| 2126 static void InitScalarlistLibrary(Isolate* isolate); | 2126 static void InitScalarlistLibrary(Isolate* isolate); |
| 2127 static void InitTypedDataLibrary(Isolate* isolate); |
| 2127 static void InitUriLibrary(Isolate* isolate); | 2128 static void InitUriLibrary(Isolate* isolate); |
| 2128 static void InitUtfLibrary(Isolate* isolate); | 2129 static void InitUtfLibrary(Isolate* isolate); |
| 2129 | 2130 |
| 2130 static RawLibrary* ASyncLibrary(); | 2131 static RawLibrary* ASyncLibrary(); |
| 2131 static RawLibrary* CoreLibrary(); | 2132 static RawLibrary* CoreLibrary(); |
| 2132 static RawLibrary* CollectionLibrary(); | 2133 static RawLibrary* CollectionLibrary(); |
| 2133 static RawLibrary* CollectionDevLibrary(); | 2134 static RawLibrary* CollectionDevLibrary(); |
| 2134 static RawLibrary* CryptoLibrary(); | 2135 static RawLibrary* CryptoLibrary(); |
| 2135 static RawLibrary* IsolateLibrary(); | 2136 static RawLibrary* IsolateLibrary(); |
| 2136 static RawLibrary* JsonLibrary(); | 2137 static RawLibrary* JsonLibrary(); |
| 2137 static RawLibrary* MathLibrary(); | 2138 static RawLibrary* MathLibrary(); |
| 2138 static RawLibrary* MirrorsLibrary(); | 2139 static RawLibrary* MirrorsLibrary(); |
| 2139 static RawLibrary* NativeWrappersLibrary(); | 2140 static RawLibrary* NativeWrappersLibrary(); |
| 2140 static RawLibrary* ScalarlistLibrary(); | 2141 static RawLibrary* ScalarlistLibrary(); |
| 2142 static RawLibrary* TypedDataLibrary(); |
| 2141 static RawLibrary* UriLibrary(); | 2143 static RawLibrary* UriLibrary(); |
| 2142 static RawLibrary* UtfLibrary(); | 2144 static RawLibrary* UtfLibrary(); |
| 2143 | 2145 |
| 2144 // Eagerly compile all classes and functions in the library. | 2146 // Eagerly compile all classes and functions in the library. |
| 2145 static RawError* CompileAll(); | 2147 static RawError* CompileAll(); |
| 2146 | 2148 |
| 2147 private: | 2149 private: |
| 2148 static const int kInitialImportsCapacity = 4; | 2150 static const int kInitialImportsCapacity = 4; |
| 2149 static const int kImportsCapacityIncrement = 8; | 2151 static const int kImportsCapacityIncrement = 8; |
| 2150 static RawLibrary* New(); | 2152 static RawLibrary* New(); |
| (...skipping 4221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6372 | 6374 |
| 6373 | 6375 |
| 6374 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6376 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6375 intptr_t index) { | 6377 intptr_t index) { |
| 6376 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6378 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6377 } | 6379 } |
| 6378 | 6380 |
| 6379 } // namespace dart | 6381 } // namespace dart |
| 6380 | 6382 |
| 6381 #endif // VM_OBJECT_H_ | 6383 #endif // VM_OBJECT_H_ |
| OLD | NEW |