| 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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
| 6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 3936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3947 static void InitNativeWrappersLibrary(Isolate* isolate, bool is_kernel_file); | 3947 static void InitNativeWrappersLibrary(Isolate* isolate, bool is_kernel_file); |
| 3948 | 3948 |
| 3949 static RawLibrary* AsyncLibrary(); | 3949 static RawLibrary* AsyncLibrary(); |
| 3950 static RawLibrary* ConvertLibrary(); | 3950 static RawLibrary* ConvertLibrary(); |
| 3951 static RawLibrary* CoreLibrary(); | 3951 static RawLibrary* CoreLibrary(); |
| 3952 static RawLibrary* CollectionLibrary(); | 3952 static RawLibrary* CollectionLibrary(); |
| 3953 static RawLibrary* DeveloperLibrary(); | 3953 static RawLibrary* DeveloperLibrary(); |
| 3954 static RawLibrary* InternalLibrary(); | 3954 static RawLibrary* InternalLibrary(); |
| 3955 static RawLibrary* IsolateLibrary(); | 3955 static RawLibrary* IsolateLibrary(); |
| 3956 static RawLibrary* MathLibrary(); | 3956 static RawLibrary* MathLibrary(); |
| 3957 #if !defined(PRODUCT) | 3957 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 3958 static RawLibrary* MirrorsLibrary(); | 3958 static RawLibrary* MirrorsLibrary(); |
| 3959 #endif | 3959 #endif |
| 3960 static RawLibrary* NativeWrappersLibrary(); | 3960 static RawLibrary* NativeWrappersLibrary(); |
| 3961 static RawLibrary* ProfilerLibrary(); | 3961 static RawLibrary* ProfilerLibrary(); |
| 3962 static RawLibrary* TypedDataLibrary(); | 3962 static RawLibrary* TypedDataLibrary(); |
| 3963 static RawLibrary* VMServiceLibrary(); | 3963 static RawLibrary* VMServiceLibrary(); |
| 3964 | 3964 |
| 3965 // Eagerly compile all classes and functions in the library. | 3965 // Eagerly compile all classes and functions in the library. |
| 3966 static RawError* CompileAll(); | 3966 static RawError* CompileAll(); |
| 3967 static RawError* ParseAll(Thread* thread); | 3967 static RawError* ParseAll(Thread* thread); |
| (...skipping 5099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9067 | 9067 |
| 9068 inline void TypeArguments::SetHash(intptr_t value) const { | 9068 inline void TypeArguments::SetHash(intptr_t value) const { |
| 9069 // This is only safe because we create a new Smi, which does not cause | 9069 // This is only safe because we create a new Smi, which does not cause |
| 9070 // heap allocation. | 9070 // heap allocation. |
| 9071 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9071 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 9072 } | 9072 } |
| 9073 | 9073 |
| 9074 } // namespace dart | 9074 } // namespace dart |
| 9075 | 9075 |
| 9076 #endif // RUNTIME_VM_OBJECT_H_ | 9076 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |