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

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

Issue 10964058: Support redirecting factory constructors in the VM (issue 3969). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 RawPatchClass* SnapshotReader::NewPatchClass() { 523 RawPatchClass* SnapshotReader::NewPatchClass() {
524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); 524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class());
525 } 525 }
526 526
527 527
528 RawClosureData* SnapshotReader::NewClosureData() { 528 RawClosureData* SnapshotReader::NewClosureData() {
529 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class()); 529 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class());
530 } 530 }
531 531
532 532
533 RawRedirectionData* SnapshotReader::NewRedirectionData() {
534 ALLOC_NEW_OBJECT(RedirectionData, Object::redirection_data_class());
535 }
536
537
533 RawFunction* SnapshotReader::NewFunction() { 538 RawFunction* SnapshotReader::NewFunction() {
534 ALLOC_NEW_OBJECT(Function, Object::function_class()); 539 ALLOC_NEW_OBJECT(Function, Object::function_class());
535 } 540 }
536 541
537 542
538 RawField* SnapshotReader::NewField() { 543 RawField* SnapshotReader::NewField() {
539 ALLOC_NEW_OBJECT(Field, Object::field_class()); 544 ALLOC_NEW_OBJECT(Field, Object::field_class());
540 } 545 }
541 546
542 547
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 1180
1176 1181
1177 void MessageWriter::WriteMessage(const Object& obj) { 1182 void MessageWriter::WriteMessage(const Object& obj) {
1178 ASSERT(kind() == Snapshot::kMessage); 1183 ASSERT(kind() == Snapshot::kMessage);
1179 WriteObject(obj.raw()); 1184 WriteObject(obj.raw());
1180 UnmarkAll(); 1185 UnmarkAll();
1181 } 1186 }
1182 1187
1183 1188
1184 } // namespace dart 1189 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698