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

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

Issue 8742028: Use ParametrizedType instead of Type where appropriate. Expand ToCString of type related classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/parser.cc ('k') | runtime/vm/snapshot.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/visitor.h" 9 #include "vm/visitor.h"
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // Write out all the object pointer fields. 138 // Write out all the object pointer fields.
139 visitor.VisitPointers(from(), to()); 139 visitor.VisitPointers(from(), to());
140 } 140 }
141 141
142 142
143 RawType* Type::ReadFrom(SnapshotReader* reader, 143 RawType* Type::ReadFrom(SnapshotReader* reader,
144 intptr_t object_id, 144 intptr_t object_id,
145 bool classes_serialized) { 145 bool classes_serialized) {
146 UNREACHABLE(); // Type is an abstract class. 146 UNREACHABLE(); // Type is an abstract class.
147 return Type::null(); 147 return NULL;
148 } 148 }
149 149
150 150
151 void RawType::WriteTo(SnapshotWriter* writer, 151 void RawType::WriteTo(SnapshotWriter* writer,
152 intptr_t object_id, 152 intptr_t object_id,
153 bool serialize_classes) { 153 bool serialize_classes) {
154 UNREACHABLE(); // Type is an abstract class. 154 UNREACHABLE(); // Type is an abstract class.
155 } 155 }
156 156
157 157
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 // Write out all the object pointer fields. 282 // Write out all the object pointer fields.
283 visitor.VisitPointers(from(), to()); 283 visitor.VisitPointers(from(), to());
284 } 284 }
285 285
286 286
287 RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader, 287 RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader,
288 intptr_t object_id, 288 intptr_t object_id,
289 bool classes_serialized) { 289 bool classes_serialized) {
290 UNREACHABLE(); // TypeArguments is an abstract class. 290 UNREACHABLE(); // TypeArguments is an abstract class.
291 return TypeArguments::null(); 291 return TypeArray::null();
292 } 292 }
293 293
294 294
295 void RawTypeArguments::WriteTo(SnapshotWriter* writer, 295 void RawTypeArguments::WriteTo(SnapshotWriter* writer,
296 intptr_t object_id, 296 intptr_t object_id,
297 bool serialize_classes) { 297 bool serialize_classes) {
298 UNREACHABLE(); // TypeArguments is an abstract class. 298 UNREACHABLE(); // TypeArguments is an abstract class.
299 } 299 }
300 300
301 301
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 // Write out all the other fields. 1385 // Write out all the other fields.
1386 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); 1386 writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
1387 writer->WriteObject(ptr()->pattern_); 1387 writer->WriteObject(ptr()->pattern_);
1388 writer->Write<intptr_t>(ptr()->type_); 1388 writer->Write<intptr_t>(ptr()->type_);
1389 writer->Write<intptr_t>(ptr()->flags_); 1389 writer->Write<intptr_t>(ptr()->flags_);
1390 1390
1391 // Do not write out the data part which is native. 1391 // Do not write out the data part which is native.
1392 } 1392 }
1393 1393
1394 } // namespace dart 1394 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698