| 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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 } | 1228 } |
| 1229 void set_is_finalized() const; | 1229 void set_is_finalized() const; |
| 1230 | 1230 |
| 1231 bool is_prefinalized() const { | 1231 bool is_prefinalized() const { |
| 1232 return ClassFinalizedBits::decode(raw_ptr()->state_bits_) | 1232 return ClassFinalizedBits::decode(raw_ptr()->state_bits_) |
| 1233 == RawClass::kPreFinalized; | 1233 == RawClass::kPreFinalized; |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 void set_is_prefinalized() const; | 1236 void set_is_prefinalized() const; |
| 1237 | 1237 |
| 1238 void ResetFinalization() const; |
| 1239 |
| 1238 bool is_marked_for_parsing() const { | 1240 bool is_marked_for_parsing() const { |
| 1239 return MarkedForParsingBit::decode(raw_ptr()->state_bits_); | 1241 return MarkedForParsingBit::decode(raw_ptr()->state_bits_); |
| 1240 } | 1242 } |
| 1241 void set_is_marked_for_parsing() const; | 1243 void set_is_marked_for_parsing() const; |
| 1242 void reset_is_marked_for_parsing() const; | 1244 void reset_is_marked_for_parsing() const; |
| 1243 | 1245 |
| 1244 bool is_const() const { return ConstBit::decode(raw_ptr()->state_bits_); } | 1246 bool is_const() const { return ConstBit::decode(raw_ptr()->state_bits_); } |
| 1245 void set_is_const() const; | 1247 void set_is_const() const; |
| 1246 | 1248 |
| 1247 bool is_mixin_app_alias() const { | 1249 bool is_mixin_app_alias() const { |
| (...skipping 6969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8217 | 8219 |
| 8218 | 8220 |
| 8219 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8221 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8220 intptr_t index) { | 8222 intptr_t index) { |
| 8221 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8223 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8222 } | 8224 } |
| 8223 | 8225 |
| 8224 } // namespace dart | 8226 } // namespace dart |
| 8225 | 8227 |
| 8226 #endif // VM_OBJECT_H_ | 8228 #endif // VM_OBJECT_H_ |
| OLD | NEW |