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 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 // Add the given code object to the list of dependent ones. | 3356 // Add the given code object to the list of dependent ones. |
3357 void RegisterDependentCode(const Code& code) const; | 3357 void RegisterDependentCode(const Code& code) const; |
3358 | 3358 |
3359 // Deoptimize all dependent code objects. | 3359 // Deoptimize all dependent code objects. |
3360 void DeoptimizeDependentCode() const; | 3360 void DeoptimizeDependentCode() const; |
3361 | 3361 |
3362 // Used by background compiler to check consistency of field copy with its | 3362 // Used by background compiler to check consistency of field copy with its |
3363 // original. | 3363 // original. |
3364 bool IsConsistentWith(const Field& field) const; | 3364 bool IsConsistentWith(const Field& field) const; |
3365 | 3365 |
| 3366 bool IsFinalAndInitialized() const; |
| 3367 |
3366 bool IsUninitialized() const; | 3368 bool IsUninitialized() const; |
3367 | 3369 |
3368 void EvaluateInitializer() const; | 3370 void EvaluateInitializer() const; |
3369 | 3371 |
3370 RawFunction* PrecompiledInitializer() const { | 3372 RawFunction* PrecompiledInitializer() const { |
3371 return raw_ptr()->initializer_.precompiled_; | 3373 return raw_ptr()->initializer_.precompiled_; |
3372 } | 3374 } |
3373 void SetPrecompiledInitializer(const Function& initializer) const; | 3375 void SetPrecompiledInitializer(const Function& initializer) const; |
3374 bool HasPrecompiledInitializer() const; | 3376 bool HasPrecompiledInitializer() const; |
3375 | 3377 |
(...skipping 5680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9056 | 9058 |
9057 inline void TypeArguments::SetHash(intptr_t value) const { | 9059 inline void TypeArguments::SetHash(intptr_t value) const { |
9058 // This is only safe because we create a new Smi, which does not cause | 9060 // This is only safe because we create a new Smi, which does not cause |
9059 // heap allocation. | 9061 // heap allocation. |
9060 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9062 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9061 } | 9063 } |
9062 | 9064 |
9063 } // namespace dart | 9065 } // namespace dart |
9064 | 9066 |
9065 #endif // RUNTIME_VM_OBJECT_H_ | 9067 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |