| OLD | NEW |
| 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 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 | 1507 |
| 1508 // Write out the type of 'this' the variable. | 1508 // Write out the type of 'this' the variable. |
| 1509 writer->WriteObjectImpl(var->type, kAsInlinedObject); | 1509 writer->WriteObjectImpl(var->type, kAsInlinedObject); |
| 1510 | 1510 |
| 1511 return; | 1511 return; |
| 1512 } | 1512 } |
| 1513 UNREACHABLE(); | 1513 UNREACHABLE(); |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 | 1516 |
| 1517 RawSingleTargetCache* SingleTargetCache::ReadFrom(SnapshotReader* reader, |
| 1518 intptr_t object_id, |
| 1519 intptr_t tags, |
| 1520 Snapshot::Kind kind, |
| 1521 bool as_reference) { |
| 1522 UNREACHABLE(); |
| 1523 return SingleTargetCache::null(); |
| 1524 } |
| 1525 |
| 1526 |
| 1527 void RawSingleTargetCache::WriteTo(SnapshotWriter* writer, |
| 1528 intptr_t object_id, |
| 1529 Snapshot::Kind kind, |
| 1530 bool as_reference) { |
| 1531 UNREACHABLE(); |
| 1532 } |
| 1533 |
| 1534 |
| 1517 RawICData* ICData::ReadFrom(SnapshotReader* reader, | 1535 RawICData* ICData::ReadFrom(SnapshotReader* reader, |
| 1518 intptr_t object_id, | 1536 intptr_t object_id, |
| 1519 intptr_t tags, | 1537 intptr_t tags, |
| 1520 Snapshot::Kind kind, | 1538 Snapshot::Kind kind, |
| 1521 bool as_reference) { | 1539 bool as_reference) { |
| 1522 ASSERT(kind == Snapshot::kScript); | 1540 ASSERT(kind == Snapshot::kScript); |
| 1523 | 1541 |
| 1524 ICData& result = ICData::ZoneHandle(reader->zone(), ICData::New()); | 1542 ICData& result = ICData::ZoneHandle(reader->zone(), ICData::New()); |
| 1525 reader->AddBackRef(object_id, &result, kIsDeserialized); | 1543 reader->AddBackRef(object_id, &result, kIsDeserialized); |
| 1526 | 1544 |
| (...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3023 // We do not allow objects with native fields in an isolate message. | 3041 // We do not allow objects with native fields in an isolate message. |
| 3024 writer->SetWriteException(Exceptions::kArgument, | 3042 writer->SetWriteException(Exceptions::kArgument, |
| 3025 "Illegal argument in isolate message" | 3043 "Illegal argument in isolate message" |
| 3026 " : (object is a UserTag)"); | 3044 " : (object is a UserTag)"); |
| 3027 } else { | 3045 } else { |
| 3028 UNREACHABLE(); | 3046 UNREACHABLE(); |
| 3029 } | 3047 } |
| 3030 } | 3048 } |
| 3031 | 3049 |
| 3032 } // namespace dart | 3050 } // namespace dart |
| OLD | NEW |