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

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

Issue 1054393003: Compress deopt instructions in memory using variable length encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix other architectures Created 5 years, 8 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
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 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 } 1335 }
1336 1336
1337 1337
1338 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer, 1338 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer,
1339 intptr_t object_id, 1339 intptr_t object_id,
1340 Snapshot::Kind kind) { 1340 Snapshot::Kind kind) {
1341 UNREACHABLE(); 1341 UNREACHABLE();
1342 } 1342 }
1343 1343
1344 1344
1345 RawDeoptInfo* DeoptInfo::ReadFrom(SnapshotReader* reader,
1346 intptr_t object_id,
1347 intptr_t tags,
1348 Snapshot::Kind kind) {
1349 UNREACHABLE();
1350 return DeoptInfo::null();
1351 }
1352
1353
1354 void RawDeoptInfo::WriteTo(SnapshotWriter* writer,
1355 intptr_t object_id,
1356 Snapshot::Kind kind) {
1357 UNREACHABLE();
1358 }
1359
1360
1361 RawContext* Context::ReadFrom(SnapshotReader* reader, 1345 RawContext* Context::ReadFrom(SnapshotReader* reader,
1362 intptr_t object_id, 1346 intptr_t object_id,
1363 intptr_t tags, 1347 intptr_t tags,
1364 Snapshot::Kind kind) { 1348 Snapshot::Kind kind) {
1365 ASSERT(reader != NULL); 1349 ASSERT(reader != NULL);
1366 1350
1367 // Allocate context object. 1351 // Allocate context object.
1368 int32_t num_vars = reader->Read<int32_t>(); 1352 int32_t num_vars = reader->Read<int32_t>();
1369 Context& context = Context::ZoneHandle(reader->zone()); 1353 Context& context = Context::ZoneHandle(reader->zone());
1370 reader->AddBackRef(object_id, &context, kIsDeserialized); 1354 reader->AddBackRef(object_id, &context, kIsDeserialized);
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2903 // We do not allow objects with native fields in an isolate message. 2887 // We do not allow objects with native fields in an isolate message.
2904 writer->SetWriteException(Exceptions::kArgument, 2888 writer->SetWriteException(Exceptions::kArgument,
2905 "Illegal argument in isolate message" 2889 "Illegal argument in isolate message"
2906 " : (object is a UserTag)"); 2890 " : (object is a UserTag)");
2907 } else { 2891 } else {
2908 UNREACHABLE(); 2892 UNREACHABLE();
2909 } 2893 }
2910 } 2894 }
2911 2895
2912 } // namespace dart 2896 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698