| 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 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2523 static RawLibrary* UtfLibrary(); | 2523 static RawLibrary* UtfLibrary(); |
| 2524 | 2524 |
| 2525 // Eagerly compile all classes and functions in the library. | 2525 // Eagerly compile all classes and functions in the library. |
| 2526 static RawError* CompileAll(); | 2526 static RawError* CompileAll(); |
| 2527 | 2527 |
| 2528 // Checks function fingerprints. Prints mismatches and aborts if | 2528 // Checks function fingerprints. Prints mismatches and aborts if |
| 2529 // mismatch found. | 2529 // mismatch found. |
| 2530 static void CheckFunctionFingerprints(); | 2530 static void CheckFunctionFingerprints(); |
| 2531 | 2531 |
| 2532 static bool IsPrivate(const String& name); | 2532 static bool IsPrivate(const String& name); |
| 2533 // Construct the full name of a corelib member. |
| 2534 static const String& PrivateCoreLibName(const String& member); |
| 2535 // Lookup class in the core lib which also contains various VM |
| 2536 // helper methods and classes. Allow look up of private classes. |
| 2537 static RawClass* LookupCoreClass(const String& class_name); |
| 2538 |
| 2533 | 2539 |
| 2534 // Return Function::null() if function does not exist in libs. | 2540 // Return Function::null() if function does not exist in libs. |
| 2535 static RawFunction* GetFunction(const GrowableArray<Library*>& libs, | 2541 static RawFunction* GetFunction(const GrowableArray<Library*>& libs, |
| 2536 const char* class_name, | 2542 const char* class_name, |
| 2537 const char* function_name); | 2543 const char* function_name); |
| 2538 | 2544 |
| 2539 private: | 2545 private: |
| 2540 static const int kInitialImportsCapacity = 4; | 2546 static const int kInitialImportsCapacity = 4; |
| 2541 static const int kImportsCapacityIncrement = 8; | 2547 static const int kImportsCapacityIncrement = 8; |
| 2542 static RawLibrary* New(); | 2548 static RawLibrary* New(); |
| (...skipping 3714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6257 | 6263 |
| 6258 | 6264 |
| 6259 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6265 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6260 intptr_t index) { | 6266 intptr_t index) { |
| 6261 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6267 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6262 } | 6268 } |
| 6263 | 6269 |
| 6264 } // namespace dart | 6270 } // namespace dart |
| 6265 | 6271 |
| 6266 #endif // VM_OBJECT_H_ | 6272 #endif // VM_OBJECT_H_ |
| OLD | NEW |