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

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

Issue 1420103006: Shared token objects (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: catch up Created 5 years, 1 month 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/snapshot.h ('k') | runtime/vm/snapshot_test.cc » ('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/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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 old_space_(thread_->isolate()->heap()->old_space()), 187 old_space_(thread_->isolate()->heap()->old_space()),
188 cls_(Class::Handle(zone_)), 188 cls_(Class::Handle(zone_)),
189 obj_(Object::Handle(zone_)), 189 obj_(Object::Handle(zone_)),
190 pobj_(PassiveObject::Handle(zone_)), 190 pobj_(PassiveObject::Handle(zone_)),
191 array_(Array::Handle(zone_)), 191 array_(Array::Handle(zone_)),
192 field_(Field::Handle(zone_)), 192 field_(Field::Handle(zone_)),
193 str_(String::Handle(zone_)), 193 str_(String::Handle(zone_)),
194 library_(Library::Handle(zone_)), 194 library_(Library::Handle(zone_)),
195 type_(AbstractType::Handle(zone_)), 195 type_(AbstractType::Handle(zone_)),
196 type_arguments_(TypeArguments::Handle(zone_)), 196 type_arguments_(TypeArguments::Handle(zone_)),
197 tokens_(Array::Handle(zone_)), 197 tokens_(GrowableObjectArray::Handle(zone_)),
198 stream_(TokenStream::Handle(zone_)), 198 stream_(TokenStream::Handle(zone_)),
199 data_(ExternalTypedData::Handle(zone_)), 199 data_(ExternalTypedData::Handle(zone_)),
200 typed_data_(TypedData::Handle(zone_)), 200 typed_data_(TypedData::Handle(zone_)),
201 code_(Code::Handle(zone_)), 201 code_(Code::Handle(zone_)),
202 function_(Function::Handle(zone_)), 202 function_(Function::Handle(zone_)),
203 megamorphic_cache_(MegamorphicCache::Handle(zone_)), 203 megamorphic_cache_(MegamorphicCache::Handle(zone_)),
204 error_(UnhandledException::Handle(zone_)), 204 error_(UnhandledException::Handle(zone_)),
205 max_vm_isolate_object_id_( 205 max_vm_isolate_object_id_(
206 (kind == Snapshot::kFull) ? 206 (kind == Snapshot::kFull) ?
207 Object::vm_isolate_snapshot_object_table().Length() : 0), 207 Object::vm_isolate_snapshot_object_table().Length() : 0),
(...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 if (setjmp(*jump.Set()) == 0) { 2570 if (setjmp(*jump.Set()) == 0) {
2571 NoSafepointScope no_safepoint; 2571 NoSafepointScope no_safepoint;
2572 WriteObject(obj.raw()); 2572 WriteObject(obj.raw());
2573 } else { 2573 } else {
2574 ThrowException(exception_type(), exception_msg()); 2574 ThrowException(exception_type(), exception_msg());
2575 } 2575 }
2576 } 2576 }
2577 2577
2578 2578
2579 } // namespace dart 2579 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.h ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698