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

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

Issue 1493433002: Precompilation: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/object.cc ('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/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 } 1615 }
1616 1616
1617 1617
1618 uword SnapshotWriter::GetObjectTags(RawObject* raw) { 1618 uword SnapshotWriter::GetObjectTags(RawObject* raw) {
1619 return raw->ptr()->tags_; 1619 return raw->ptr()->tags_;
1620 } 1620 }
1621 1621
1622 1622
1623 #define VM_OBJECT_CLASS_LIST(V) \ 1623 #define VM_OBJECT_CLASS_LIST(V) \
1624 V(OneByteString) \ 1624 V(OneByteString) \
1625 V(TwoByteString) \
1625 V(Mint) \ 1626 V(Mint) \
1626 V(Bigint) \ 1627 V(Bigint) \
1627 V(Double) \ 1628 V(Double) \
1628 V(ImmutableArray) \ 1629 V(ImmutableArray) \
1629 1630
1630 #define VM_OBJECT_WRITE(clazz) \ 1631 #define VM_OBJECT_WRITE(clazz) \
1631 case clazz::kClassId: { \ 1632 case clazz::kClassId: { \
1632 object_id = forward_list_->AddObject(zone(), rawobj, kIsSerialized); \ 1633 object_id = forward_list_->AddObject(zone(), rawobj, kIsSerialized); \
1633 Raw##clazz* raw_obj = reinterpret_cast<Raw##clazz*>(rawobj); \ 1634 Raw##clazz* raw_obj = reinterpret_cast<Raw##clazz*>(rawobj); \
1634 raw_obj->WriteTo(this, object_id, kind(), false); \ 1635 raw_obj->WriteTo(this, object_id, kind(), false); \
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 if (setjmp(*jump.Set()) == 0) { 2585 if (setjmp(*jump.Set()) == 0) {
2585 NoSafepointScope no_safepoint; 2586 NoSafepointScope no_safepoint;
2586 WriteObject(obj.raw()); 2587 WriteObject(obj.raw());
2587 } else { 2588 } else {
2588 ThrowException(exception_type(), exception_msg()); 2589 ThrowException(exception_type(), exception_msg());
2589 } 2590 }
2590 } 2591 }
2591 2592
2592 2593
2593 } // namespace dart 2594 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698