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

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

Issue 1151523002: VM-internalize the default Map implementation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Ready for review. Created 5 years, 7 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
« runtime/vm/raw_object_snapshot.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/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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 pobj_(PassiveObject::Handle(isolate)), 181 pobj_(PassiveObject::Handle(isolate)),
182 array_(Array::Handle(isolate)), 182 array_(Array::Handle(isolate)),
183 field_(Field::Handle(isolate)), 183 field_(Field::Handle(isolate)),
184 str_(String::Handle(isolate)), 184 str_(String::Handle(isolate)),
185 library_(Library::Handle(isolate)), 185 library_(Library::Handle(isolate)),
186 type_(AbstractType::Handle(isolate)), 186 type_(AbstractType::Handle(isolate)),
187 type_arguments_(TypeArguments::Handle(isolate)), 187 type_arguments_(TypeArguments::Handle(isolate)),
188 tokens_(Array::Handle(isolate)), 188 tokens_(Array::Handle(isolate)),
189 stream_(TokenStream::Handle(isolate)), 189 stream_(TokenStream::Handle(isolate)),
190 data_(ExternalTypedData::Handle(isolate)), 190 data_(ExternalTypedData::Handle(isolate)),
191 typed_data_(TypedData::Handle(isolate)),
191 error_(UnhandledException::Handle(isolate)), 192 error_(UnhandledException::Handle(isolate)),
192 max_vm_isolate_object_id_( 193 max_vm_isolate_object_id_(
193 Object::vm_isolate_snapshot_object_table().Length()), 194 Object::vm_isolate_snapshot_object_table().Length()),
194 backward_references_(backward_refs) { 195 backward_references_(backward_refs) {
195 } 196 }
196 197
197 198
198 RawObject* SnapshotReader::ReadObject() { 199 RawObject* SnapshotReader::ReadObject() {
199 // Setup for long jump in case there is an exception while reading. 200 // Setup for long jump in case there is an exception while reading.
200 LongJumpScope jump; 201 LongJumpScope jump;
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 NoSafepointScope no_safepoint; 2224 NoSafepointScope no_safepoint;
2224 WriteObject(obj.raw()); 2225 WriteObject(obj.raw());
2225 UnmarkAll(); 2226 UnmarkAll();
2226 } else { 2227 } else {
2227 ThrowException(exception_type(), exception_msg()); 2228 ThrowException(exception_type(), exception_msg());
2228 } 2229 }
2229 } 2230 }
2230 2231
2231 2232
2232 } // namespace dart 2233 } // namespace dart
OLDNEW
« runtime/vm/raw_object_snapshot.cc ('K') | « runtime/vm/snapshot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698