| 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 #include "vm/snapshot.h" | 5 #include "vm/snapshot.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/bootstrap.h" | 9 #include "vm/bootstrap.h" |
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static bool IsSingletonClassId(intptr_t class_id) { | 25 static bool IsSingletonClassId(intptr_t class_id) { |
| 26 // Check if this is a singleton object class which is shared by all isolates. | 26 // Check if this is a singleton object class which is shared by all isolates. |
| 27 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) || | 27 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) || |
| 28 (class_id >= kNullCid && class_id <= kVoidCid)); | 28 (class_id >= kNullCid && class_id <= kVoidCid)); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 static bool IsObjectStoreClassId(intptr_t class_id) { | 32 static bool IsObjectStoreClassId(intptr_t class_id) { |
| 33 // Check if this is a class which is stored in the object store. | 33 // Check if this is a class which is stored in the object store. |
| 34 return (class_id == kObjectCid || | 34 return (class_id == kObjectCid || |
| 35 (class_id >= kInstanceCid && class_id <= kFloat64x2Cid) || | 35 (class_id >= kInstanceCid && class_id <= kUserTagCid) || |
| 36 class_id == kArrayCid || | 36 class_id == kArrayCid || |
| 37 class_id == kImmutableArrayCid || | 37 class_id == kImmutableArrayCid || |
| 38 RawObject::IsStringClassId(class_id) || | 38 RawObject::IsStringClassId(class_id) || |
| 39 RawObject::IsTypedDataClassId(class_id) || | 39 RawObject::IsTypedDataClassId(class_id) || |
| 40 RawObject::IsExternalTypedDataClassId(class_id) || | 40 RawObject::IsExternalTypedDataClassId(class_id) || |
| 41 class_id == kNullCid); | 41 class_id == kNullCid); |
| 42 } | 42 } |
| 43 | 43 |
| 44 | 44 |
| 45 static bool IsObjectStoreTypeId(intptr_t index) { | 45 static bool IsObjectStoreTypeId(intptr_t index) { |
| (...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 NoGCScope no_gc; | 1574 NoGCScope no_gc; |
| 1575 WriteObject(obj.raw()); | 1575 WriteObject(obj.raw()); |
| 1576 UnmarkAll(); | 1576 UnmarkAll(); |
| 1577 } else { | 1577 } else { |
| 1578 ThrowException(exception_type(), exception_msg()); | 1578 ThrowException(exception_type(), exception_msg()); |
| 1579 } | 1579 } |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 | 1582 |
| 1583 } // namespace dart | 1583 } // namespace dart |
| OLD | NEW |