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

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

Issue 1175523002: Object pool with support for untagged entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stack_frame.h » ('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 #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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 } 1269 }
1270 1270
1271 1271
1272 void RawInstructions::WriteTo(SnapshotWriter* writer, 1272 void RawInstructions::WriteTo(SnapshotWriter* writer,
1273 intptr_t object_id, 1273 intptr_t object_id,
1274 Snapshot::Kind kind) { 1274 Snapshot::Kind kind) {
1275 UNREACHABLE(); 1275 UNREACHABLE();
1276 } 1276 }
1277 1277
1278 1278
1279 RawObjectPool* ObjectPool::ReadFrom(SnapshotReader* reader,
1280 intptr_t object_id,
1281 intptr_t tags,
1282 Snapshot::Kind kind) {
1283 UNREACHABLE();
1284 return ObjectPool::null();
1285 }
1286
1287
1288 void RawObjectPool::WriteTo(SnapshotWriter* writer,
1289 intptr_t object_id,
1290 Snapshot::Kind kind) {
1291 UNREACHABLE();
1292 }
1293
1294
1279 RawPcDescriptors* PcDescriptors::ReadFrom(SnapshotReader* reader, 1295 RawPcDescriptors* PcDescriptors::ReadFrom(SnapshotReader* reader,
1280 intptr_t object_id, 1296 intptr_t object_id,
1281 intptr_t tags, 1297 intptr_t tags,
1282 Snapshot::Kind kind) { 1298 Snapshot::Kind kind) {
1283 UNREACHABLE(); 1299 UNREACHABLE();
1284 return PcDescriptors::null(); 1300 return PcDescriptors::null();
1285 } 1301 }
1286 1302
1287 1303
1288 void RawPcDescriptors::WriteTo(SnapshotWriter* writer, 1304 void RawPcDescriptors::WriteTo(SnapshotWriter* writer,
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2947 // We do not allow objects with native fields in an isolate message. 2963 // We do not allow objects with native fields in an isolate message.
2948 writer->SetWriteException(Exceptions::kArgument, 2964 writer->SetWriteException(Exceptions::kArgument,
2949 "Illegal argument in isolate message" 2965 "Illegal argument in isolate message"
2950 " : (object is a UserTag)"); 2966 " : (object is a UserTag)");
2951 } else { 2967 } else {
2952 UNREACHABLE(); 2968 UNREACHABLE();
2953 } 2969 }
2954 } 2970 }
2955 2971
2956 } // namespace dart 2972 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698