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

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

Issue 2357313003: AOT: Add a separate switchable call state for unlinked calls. (Closed)
Patch Set: . Created 4 years, 2 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/runtime_entry_list.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/native_entry.h" 5 #include "vm/native_entry.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 1536
1537 1537
1538 void RawSingleTargetCache::WriteTo(SnapshotWriter* writer, 1538 void RawSingleTargetCache::WriteTo(SnapshotWriter* writer,
1539 intptr_t object_id, 1539 intptr_t object_id,
1540 Snapshot::Kind kind, 1540 Snapshot::Kind kind,
1541 bool as_reference) { 1541 bool as_reference) {
1542 UNREACHABLE(); 1542 UNREACHABLE();
1543 } 1543 }
1544 1544
1545 1545
1546 RawUnlinkedCall* UnlinkedCall::ReadFrom(SnapshotReader* reader,
1547 intptr_t object_id,
1548 intptr_t tags,
1549 Snapshot::Kind kind,
1550 bool as_reference) {
1551 UNREACHABLE();
1552 return UnlinkedCall::null();
1553 }
1554
1555
1556 void RawUnlinkedCall::WriteTo(SnapshotWriter* writer,
1557 intptr_t object_id,
1558 Snapshot::Kind kind,
1559 bool as_reference) {
1560 UNREACHABLE();
1561 }
1562
1563
1546 RawICData* ICData::ReadFrom(SnapshotReader* reader, 1564 RawICData* ICData::ReadFrom(SnapshotReader* reader,
1547 intptr_t object_id, 1565 intptr_t object_id,
1548 intptr_t tags, 1566 intptr_t tags,
1549 Snapshot::Kind kind, 1567 Snapshot::Kind kind,
1550 bool as_reference) { 1568 bool as_reference) {
1551 ASSERT(kind == Snapshot::kScript); 1569 ASSERT(kind == Snapshot::kScript);
1552 1570
1553 ICData& result = ICData::ZoneHandle(reader->zone(), ICData::New()); 1571 ICData& result = ICData::ZoneHandle(reader->zone(), ICData::New());
1554 reader->AddBackRef(object_id, &result, kIsDeserialized); 1572 reader->AddBackRef(object_id, &result, kIsDeserialized);
1555 1573
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 // We do not allow objects with native fields in an isolate message. 3071 // We do not allow objects with native fields in an isolate message.
3054 writer->SetWriteException(Exceptions::kArgument, 3072 writer->SetWriteException(Exceptions::kArgument,
3055 "Illegal argument in isolate message" 3073 "Illegal argument in isolate message"
3056 " : (object is a UserTag)"); 3074 " : (object is a UserTag)");
3057 } else { 3075 } else {
3058 UNREACHABLE(); 3076 UNREACHABLE();
3059 } 3077 }
3060 } 3078 }
3061 3079
3062 } // namespace dart 3080 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/runtime_entry_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698