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

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

Issue 10827288: - Support for patching of class methods and fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« runtime/vm/parser.cc ('K') | « runtime/vm/snapshot.h ('k') | no next file » | 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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 RawType* SnapshotReader::NewType() { 485 RawType* SnapshotReader::NewType() {
486 ALLOC_NEW_OBJECT(Type, Object::type_class()); 486 ALLOC_NEW_OBJECT(Type, Object::type_class());
487 } 487 }
488 488
489 489
490 RawTypeParameter* SnapshotReader::NewTypeParameter() { 490 RawTypeParameter* SnapshotReader::NewTypeParameter() {
491 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class()); 491 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class());
492 } 492 }
493 493
494 494
495 RawPatchClass* SnapshotReader::NewPatchClass() {
496 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class());
497 }
498
499
495 RawFunction* SnapshotReader::NewFunction() { 500 RawFunction* SnapshotReader::NewFunction() {
496 ALLOC_NEW_OBJECT(Function, Object::function_class()); 501 ALLOC_NEW_OBJECT(Function, Object::function_class());
497 } 502 }
498 503
499 504
500 RawField* SnapshotReader::NewField() { 505 RawField* SnapshotReader::NewField() {
501 ALLOC_NEW_OBJECT(Field, Object::field_class()); 506 ALLOC_NEW_OBJECT(Field, Object::field_class());
502 } 507 }
503 508
504 509
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 RawObject* raw_obj = *current; 1120 RawObject* raw_obj = *current;
1116 if (as_references_) { 1121 if (as_references_) {
1117 writer_->WriteObjectRef(raw_obj); 1122 writer_->WriteObjectRef(raw_obj);
1118 } else { 1123 } else {
1119 writer_->WriteObjectImpl(raw_obj); 1124 writer_->WriteObjectImpl(raw_obj);
1120 } 1125 }
1121 } 1126 }
1122 } 1127 }
1123 1128
1124 } // namespace dart 1129 } // namespace dart
OLDNEW
« runtime/vm/parser.cc ('K') | « runtime/vm/snapshot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698