| 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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 static RawLibrary* CoreLibrary(); | 2120 static RawLibrary* CoreLibrary(); |
| 2121 static RawLibrary* CollectionLibrary(); | 2121 static RawLibrary* CollectionLibrary(); |
| 2122 static RawLibrary* CollectionDevLibrary(); | 2122 static RawLibrary* CollectionDevLibrary(); |
| 2123 static RawLibrary* CryptoLibrary(); | 2123 static RawLibrary* CryptoLibrary(); |
| 2124 static RawLibrary* IsolateLibrary(); | 2124 static RawLibrary* IsolateLibrary(); |
| 2125 static RawLibrary* JsonLibrary(); | 2125 static RawLibrary* JsonLibrary(); |
| 2126 static RawLibrary* MathLibrary(); | 2126 static RawLibrary* MathLibrary(); |
| 2127 static RawLibrary* MirrorsLibrary(); | 2127 static RawLibrary* MirrorsLibrary(); |
| 2128 static RawLibrary* NativeWrappersLibrary(); | 2128 static RawLibrary* NativeWrappersLibrary(); |
| 2129 static RawLibrary* ScalarlistLibrary(); | 2129 static RawLibrary* ScalarlistLibrary(); |
| 2130 static RawLibrary* TypedDataLibrary(); |
| 2130 static RawLibrary* UriLibrary(); | 2131 static RawLibrary* UriLibrary(); |
| 2131 static RawLibrary* UtfLibrary(); | 2132 static RawLibrary* UtfLibrary(); |
| 2132 | 2133 |
| 2133 // Eagerly compile all classes and functions in the library. | 2134 // Eagerly compile all classes and functions in the library. |
| 2134 static RawError* CompileAll(); | 2135 static RawError* CompileAll(); |
| 2135 | 2136 |
| 2136 private: | 2137 private: |
| 2137 static const int kInitialImportsCapacity = 4; | 2138 static const int kInitialImportsCapacity = 4; |
| 2138 static const int kImportsCapacityIncrement = 8; | 2139 static const int kImportsCapacityIncrement = 8; |
| 2139 static RawLibrary* New(); | 2140 static RawLibrary* New(); |
| (...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6564 | 6565 |
| 6565 | 6566 |
| 6566 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6567 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6567 intptr_t index) { | 6568 intptr_t index) { |
| 6568 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6569 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6569 } | 6570 } |
| 6570 | 6571 |
| 6571 } // namespace dart | 6572 } // namespace dart |
| 6572 | 6573 |
| 6573 #endif // VM_OBJECT_H_ | 6574 #endif // VM_OBJECT_H_ |
| OLD | NEW |