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

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

Issue 216383004: Merge initial implementation of deferred handling in the VM: (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 9 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_snapshot.cc ('k') | runtime/vm/symbols.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/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/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 ALLOC_NEW_OBJECT(Field, Object::field_class()); 591 ALLOC_NEW_OBJECT(Field, Object::field_class());
592 } 592 }
593 593
594 594
595 RawLibrary* SnapshotReader::NewLibrary() { 595 RawLibrary* SnapshotReader::NewLibrary() {
596 ALLOC_NEW_OBJECT(Library, Object::library_class()); 596 ALLOC_NEW_OBJECT(Library, Object::library_class());
597 } 597 }
598 598
599 599
600 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() { 600 RawLibraryPrefix* SnapshotReader::NewLibraryPrefix() {
601 ALLOC_NEW_OBJECT(LibraryPrefix, Object::library_prefix_class()); 601 ALLOC_NEW_OBJECT(LibraryPrefix, object_store()->library_prefix_class());
602 } 602 }
603 603
604 604
605 RawNamespace* SnapshotReader::NewNamespace() { 605 RawNamespace* SnapshotReader::NewNamespace() {
606 ALLOC_NEW_OBJECT(Namespace, Object::namespace_class()); 606 ALLOC_NEW_OBJECT(Namespace, Object::namespace_class());
607 } 607 }
608 608
609 609
610 RawScript* SnapshotReader::NewScript() { 610 RawScript* SnapshotReader::NewScript() {
611 ALLOC_NEW_OBJECT(Script, Object::script_class()); 611 ALLOC_NEW_OBJECT(Script, Object::script_class());
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 NoGCScope no_gc; 1560 NoGCScope no_gc;
1561 WriteObject(obj.raw()); 1561 WriteObject(obj.raw());
1562 UnmarkAll(); 1562 UnmarkAll();
1563 } else { 1563 } else {
1564 ThrowException(exception_type(), exception_msg()); 1564 ThrowException(exception_type(), exception_msg());
1565 } 1565 }
1566 } 1566 }
1567 1567
1568 1568
1569 } // namespace dart 1569 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698