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

Side by Side Diff: vm/raw_object.h

Issue 10834069: Do not try to serialize VM objects, these are read only canonical objects and should be referred to… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: 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 | « vm/dart_api_message.cc ('k') | vm/raw_object_snapshot.cc » ('j') | 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 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 }; 1110 };
1111 1111
1112 1112
1113 class RawOneByteString : public RawString { 1113 class RawOneByteString : public RawString {
1114 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString); 1114 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString);
1115 1115
1116 // Variable length data follows here. 1116 // Variable length data follows here.
1117 uint8_t data_[0]; 1117 uint8_t data_[0];
1118 1118
1119 friend class SnapshotReader; 1119 friend class SnapshotReader;
1120 friend class ApiMessageReader;
1120 }; 1121 };
1121 1122
1122 1123
1123 class RawTwoByteString : public RawString { 1124 class RawTwoByteString : public RawString {
1124 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString); 1125 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString);
1125 1126
1126 // Variable length data follows here. 1127 // Variable length data follows here.
1127 uint16_t data_[0]; 1128 uint16_t data_[0];
1128 1129
1129 friend class SnapshotReader; 1130 friend class SnapshotReader;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 kExternalUint64Array == kByteArray + 18 && 1598 kExternalUint64Array == kByteArray + 18 &&
1598 kExternalFloat32Array == kByteArray + 19 && 1599 kExternalFloat32Array == kByteArray + 19 &&
1599 kExternalFloat64Array == kByteArray + 20 && 1600 kExternalFloat64Array == kByteArray + 20 &&
1600 kClosure == kByteArray + 21); 1601 kClosure == kByteArray + 21);
1601 return (index >= kByteArray && index <= kClosure); 1602 return (index >= kByteArray && index <= kClosure);
1602 } 1603 }
1603 1604
1604 } // namespace dart 1605 } // namespace dart
1605 1606
1606 #endif // VM_RAW_OBJECT_H_ 1607 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/dart_api_message.cc ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698