Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: runtime/vm/snapshot.cc

Issue 10832199: Add a weak property type to the virtual machine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address final review comments Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/snapshot.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698