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

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

Issue 1147303002: Support untagged object pool entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 5 years, 7 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
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/object.h" 5 #include "vm/object.h"
6 #include "vm/object_store.h" 6 #include "vm/object_store.h"
7 #include "vm/snapshot.h" 7 #include "vm/snapshot.h"
8 #include "vm/stub_code.h" 8 #include "vm/stub_code.h"
9 #include "vm/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1255
1256 void RawCode::WriteTo(SnapshotWriter* writer, 1256 void RawCode::WriteTo(SnapshotWriter* writer,
1257 intptr_t object_id, 1257 intptr_t object_id,
1258 Snapshot::Kind kind) { 1258 Snapshot::Kind kind) {
1259 // We have already checked for this and written a NULL object, hence we 1259 // We have already checked for this and written a NULL object, hence we
1260 // should not reach here. 1260 // should not reach here.
1261 UNREACHABLE(); 1261 UNREACHABLE();
1262 } 1262 }
1263 1263
1264 1264
1265 RawObjectPool* ObjectPool::ReadFrom(SnapshotReader* reader,
1266 intptr_t object_id,
1267 intptr_t tags,
1268 Snapshot::Kind kind) {
1269 UNREACHABLE();
1270 return ObjectPool::null();
1271 }
1272
1273
1274 void RawObjectPool::WriteTo(SnapshotWriter* writer,
1275 intptr_t object_id,
1276 Snapshot::Kind kind) {
1277 UNREACHABLE();
1278 }
1279
1280
1265 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader, 1281 RawInstructions* Instructions::ReadFrom(SnapshotReader* reader,
1266 intptr_t object_id, 1282 intptr_t object_id,
1267 intptr_t tags, 1283 intptr_t tags,
1268 Snapshot::Kind kind) { 1284 Snapshot::Kind kind) {
1269 UNREACHABLE(); 1285 UNREACHABLE();
1270 return Instructions::null(); 1286 return Instructions::null();
1271 } 1287 }
1272 1288
1273 1289
1274 void RawInstructions::WriteTo(SnapshotWriter* writer, 1290 void RawInstructions::WriteTo(SnapshotWriter* writer,
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 // We do not allow objects with native fields in an isolate message. 2894 // We do not allow objects with native fields in an isolate message.
2879 writer->SetWriteException(Exceptions::kArgument, 2895 writer->SetWriteException(Exceptions::kArgument,
2880 "Illegal argument in isolate message" 2896 "Illegal argument in isolate message"
2881 " : (object is a UserTag)"); 2897 " : (object is a UserTag)");
2882 } else { 2898 } else {
2883 UNREACHABLE(); 2899 UNREACHABLE();
2884 } 2900 }
2885 } 2901 }
2886 2902
2887 } // namespace dart 2903 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698