| 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 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3851 static RawLibrary* IsolateLibrary(); | 3851 static RawLibrary* IsolateLibrary(); |
| 3852 static RawLibrary* MathLibrary(); | 3852 static RawLibrary* MathLibrary(); |
| 3853 static RawLibrary* MirrorsLibrary(); | 3853 static RawLibrary* MirrorsLibrary(); |
| 3854 static RawLibrary* NativeWrappersLibrary(); | 3854 static RawLibrary* NativeWrappersLibrary(); |
| 3855 static RawLibrary* ProfilerLibrary(); | 3855 static RawLibrary* ProfilerLibrary(); |
| 3856 static RawLibrary* TypedDataLibrary(); | 3856 static RawLibrary* TypedDataLibrary(); |
| 3857 static RawLibrary* VMServiceLibrary(); | 3857 static RawLibrary* VMServiceLibrary(); |
| 3858 | 3858 |
| 3859 // Eagerly compile all classes and functions in the library. | 3859 // Eagerly compile all classes and functions in the library. |
| 3860 static RawError* CompileAll(); | 3860 static RawError* CompileAll(); |
| 3861 static RawError* ParseAll(Thread* thread); |
| 3861 | 3862 |
| 3862 #if defined(DART_NO_SNAPSHOT) | 3863 #if defined(DART_NO_SNAPSHOT) |
| 3863 // Checks function fingerprints. Prints mismatches and aborts if | 3864 // Checks function fingerprints. Prints mismatches and aborts if |
| 3864 // mismatch found. | 3865 // mismatch found. |
| 3865 static void CheckFunctionFingerprints(); | 3866 static void CheckFunctionFingerprints(); |
| 3866 #endif // defined(DART_NO_SNAPSHOT). | 3867 #endif // defined(DART_NO_SNAPSHOT). |
| 3867 | 3868 |
| 3868 static bool IsPrivate(const String& name); | 3869 static bool IsPrivate(const String& name); |
| 3869 // Construct the full name of a corelib member. | 3870 // Construct the full name of a corelib member. |
| 3870 static const String& PrivateCoreLibName(const String& member); | 3871 static const String& PrivateCoreLibName(const String& member); |
| (...skipping 5110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8981 | 8982 |
| 8982 inline void TypeArguments::SetHash(intptr_t value) const { | 8983 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8983 // This is only safe because we create a new Smi, which does not cause | 8984 // This is only safe because we create a new Smi, which does not cause |
| 8984 // heap allocation. | 8985 // heap allocation. |
| 8985 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8986 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8986 } | 8987 } |
| 8987 | 8988 |
| 8988 } // namespace dart | 8989 } // namespace dart |
| 8989 | 8990 |
| 8990 #endif // VM_OBJECT_H_ | 8991 #endif // VM_OBJECT_H_ |
| OLD | NEW |