| 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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 static RawLibrary* MathLibrary(); | 2182 static RawLibrary* MathLibrary(); |
| 2183 static RawLibrary* MirrorsLibrary(); | 2183 static RawLibrary* MirrorsLibrary(); |
| 2184 static RawLibrary* NativeWrappersLibrary(); | 2184 static RawLibrary* NativeWrappersLibrary(); |
| 2185 static RawLibrary* TypedDataLibrary(); | 2185 static RawLibrary* TypedDataLibrary(); |
| 2186 static RawLibrary* UriLibrary(); | 2186 static RawLibrary* UriLibrary(); |
| 2187 static RawLibrary* UtfLibrary(); | 2187 static RawLibrary* UtfLibrary(); |
| 2188 | 2188 |
| 2189 // Eagerly compile all classes and functions in the library. | 2189 // Eagerly compile all classes and functions in the library. |
| 2190 static RawError* CompileAll(); | 2190 static RawError* CompileAll(); |
| 2191 | 2191 |
| 2192 // Checks function fingerprints. Prints mismatches and aborts if |
| 2193 // mismatch found. |
| 2194 static void CheckFunctionFingerprints(); |
| 2195 |
| 2192 private: | 2196 private: |
| 2193 static const int kInitialImportsCapacity = 4; | 2197 static const int kInitialImportsCapacity = 4; |
| 2194 static const int kImportsCapacityIncrement = 8; | 2198 static const int kImportsCapacityIncrement = 8; |
| 2195 static RawLibrary* New(); | 2199 static RawLibrary* New(); |
| 2196 | 2200 |
| 2197 void set_num_imports(intptr_t value) const { | 2201 void set_num_imports(intptr_t value) const { |
| 2198 raw_ptr()->num_imports_ = value; | 2202 raw_ptr()->num_imports_ = value; |
| 2199 } | 2203 } |
| 2200 RawArray* imports() const { return raw_ptr()->imports_; } | 2204 RawArray* imports() const { return raw_ptr()->imports_; } |
| 2201 RawArray* exports() const { return raw_ptr()->exports_; } | 2205 RawArray* exports() const { return raw_ptr()->exports_; } |
| (...skipping 3456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5658 | 5662 |
| 5659 | 5663 |
| 5660 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 5664 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 5661 intptr_t index) { | 5665 intptr_t index) { |
| 5662 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 5666 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 5663 } | 5667 } |
| 5664 | 5668 |
| 5665 } // namespace dart | 5669 } // namespace dart |
| 5666 | 5670 |
| 5667 #endif // VM_OBJECT_H_ | 5671 #endif // VM_OBJECT_H_ |
| OLD | NEW |