| 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 3115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3126 | 3126 |
| 3127 static intptr_t InstanceSize() { | 3127 static intptr_t InstanceSize() { |
| 3128 return RoundedAllocationSize(sizeof(RawField)); | 3128 return RoundedAllocationSize(sizeof(RawField)); |
| 3129 } | 3129 } |
| 3130 | 3130 |
| 3131 static RawField* New(const String& name, | 3131 static RawField* New(const String& name, |
| 3132 bool is_static, | 3132 bool is_static, |
| 3133 bool is_final, | 3133 bool is_final, |
| 3134 bool is_const, | 3134 bool is_const, |
| 3135 bool is_reflectable, | 3135 bool is_reflectable, |
| 3136 const Class& owner, | 3136 const Object& owner, |
| 3137 const AbstractType& type, | 3137 const AbstractType& type, |
| 3138 TokenPosition token_pos); | 3138 TokenPosition token_pos); |
| 3139 | 3139 |
| 3140 static RawField* NewTopLevel(const String& name, | 3140 static RawField* NewTopLevel(const String& name, |
| 3141 bool is_final, | 3141 bool is_final, |
| 3142 bool is_const, | 3142 bool is_const, |
| 3143 const Object& owner, | 3143 const Object& owner, |
| 3144 TokenPosition token_pos); | 3144 TokenPosition token_pos); |
| 3145 | 3145 |
| 3146 // Allocate new field object, clone values from this field. The | 3146 // Allocate new field object, clone values from this field. The |
| (...skipping 5757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8904 | 8904 |
| 8905 inline void TypeArguments::SetHash(intptr_t value) const { | 8905 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8906 // This is only safe because we create a new Smi, which does not cause | 8906 // This is only safe because we create a new Smi, which does not cause |
| 8907 // heap allocation. | 8907 // heap allocation. |
| 8908 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8908 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8909 } | 8909 } |
| 8910 | 8910 |
| 8911 } // namespace dart | 8911 } // namespace dart |
| 8912 | 8912 |
| 8913 #endif // RUNTIME_VM_OBJECT_H_ | 8913 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |