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/exceptions.h" | 10 #include "vm/exceptions.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 static bool IsSingletonClassId(intptr_t class_id) { | 23 static bool IsSingletonClassId(intptr_t class_id) { |
24 // Check if this is a singleton object class which is shared by all isolates. | 24 // Check if this is a singleton object class which is shared by all isolates. |
25 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) || | 25 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) || |
26 (class_id >= kNullCid && class_id <= kVoidCid)); | 26 (class_id >= kNullCid && class_id <= kVoidCid)); |
27 } | 27 } |
28 | 28 |
29 | 29 |
30 static bool IsObjectStoreClassId(intptr_t class_id) { | 30 static bool IsObjectStoreClassId(intptr_t class_id) { |
31 // Check if this is a class which is stored in the object store. | 31 // Check if this is a class which is stored in the object store. |
32 return (class_id == kObjectCid || | 32 return (class_id == kObjectCid || |
33 (class_id >= kInstanceCid && class_id <= kJSRegExpCid)); | 33 (class_id >= kInstanceCid && class_id <= kWeakPropertyCid)); |
34 } | 34 } |
35 | 35 |
36 | 36 |
37 static bool IsObjectStoreTypeId(intptr_t index) { | 37 static bool IsObjectStoreTypeId(intptr_t index) { |
38 // Check if this is a type which is stored in the object store. | 38 // Check if this is a type which is stored in the object store. |
39 return (index >= kObjectType && index <= kByteArrayInterface); | 39 return (index >= kObjectType && index <= kByteArrayInterface); |
40 } | 40 } |
41 | 41 |
42 | 42 |
43 static intptr_t ClassIdFromObjectId(intptr_t object_id) { | 43 static intptr_t ClassIdFromObjectId(intptr_t object_id) { |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 RawObject* raw_obj = *current; | 1120 RawObject* raw_obj = *current; |
1121 if (as_references_) { | 1121 if (as_references_) { |
1122 writer_->WriteObjectRef(raw_obj); | 1122 writer_->WriteObjectRef(raw_obj); |
1123 } else { | 1123 } else { |
1124 writer_->WriteObjectImpl(raw_obj); | 1124 writer_->WriteObjectImpl(raw_obj); |
1125 } | 1125 } |
1126 } | 1126 } |
1127 } | 1127 } |
1128 | 1128 |
1129 } // namespace dart | 1129 } // namespace dart |
OLD | NEW |