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

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

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/snapshot.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/bigint_operations.h" 5 #include "vm/bigint_operations.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 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2686 if (kind == Snapshot::kMessage) { 2686 if (kind == Snapshot::kMessage) {
2687 // We do not allow objects with native fields in an isolate message. 2687 // We do not allow objects with native fields in an isolate message.
2688 writer->SetWriteException(Exceptions::kArgument, 2688 writer->SetWriteException(Exceptions::kArgument,
2689 "Illegal argument in isolate message" 2689 "Illegal argument in isolate message"
2690 " : (object is a MirrorReference)"); 2690 " : (object is a MirrorReference)");
2691 } else { 2691 } else {
2692 UNREACHABLE(); 2692 UNREACHABLE();
2693 } 2693 }
2694 } 2694 }
2695 2695
2696
2697 RawUserTag* UserTag::ReadFrom(SnapshotReader* reader,
2698 intptr_t object_id,
2699 intptr_t tags,
2700 Snapshot::Kind kind) {
2701 UNREACHABLE();
2702 return UserTag::null();
2703 }
2704
2705
2706 void RawUserTag::WriteTo(SnapshotWriter* writer,
2707 intptr_t object_id,
2708 Snapshot::Kind kind) {
2709 if (kind == Snapshot::kMessage) {
2710 // We do not allow objects with native fields in an isolate message.
2711 writer->SetWriteException(Exceptions::kArgument,
2712 "Illegal argument in isolate message"
2713 " : (object is a UserTag)");
2714 } else {
2715 UNREACHABLE();
2716 }
2717 }
2718
2696 } // namespace dart 2719 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698