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

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

Issue 1797393004: - Undo experiment. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/class_finalizer.h" 5 #include "vm/class_finalizer.h"
6 6
7 #include "vm/code_generator.h" 7 #include "vm/code_generator.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
11 #include "vm/longjump.h" 11 #include "vm/longjump.h"
12 #include "vm/log.h" 12 #include "vm/log.h"
13 #include "vm/object_store.h" 13 #include "vm/object_store.h"
14 #include "vm/symbols.h" 14 #include "vm/symbols.h"
15 15
16 namespace dart { 16 namespace dart {
17 17
18 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes."); 18 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes.");
19 DEFINE_FLAG(bool, reify, false, "Reify type arguments of generic types."); 19 DEFINE_FLAG(bool, reify, true, "Reify type arguments of generic types.");
20 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization."); 20 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization.");
21 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization."); 21 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization.");
22 22
23 23
24 bool ClassFinalizer::AllClassesFinalized() { 24 bool ClassFinalizer::AllClassesFinalized() {
25 ObjectStore* object_store = Isolate::Current()->object_store(); 25 ObjectStore* object_store = Isolate::Current()->object_store();
26 const GrowableObjectArray& classes = 26 const GrowableObjectArray& classes =
27 GrowableObjectArray::Handle(object_store->pending_classes()); 27 GrowableObjectArray::Handle(object_store->pending_classes());
28 return classes.Length() == 0; 28 return classes.Length() == 0;
29 } 29 }
(...skipping 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3321 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields()); 3321 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields());
3322 field ^= fields_array.At(0); 3322 field ^= fields_array.At(0);
3323 ASSERT(field.Offset() == ByteBuffer::data_offset()); 3323 ASSERT(field.Offset() == ByteBuffer::data_offset());
3324 name ^= field.name(); 3324 name ^= field.name();
3325 expected_name ^= String::New("_data"); 3325 expected_name ^= String::New("_data");
3326 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name)); 3326 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name));
3327 #endif 3327 #endif
3328 } 3328 }
3329 3329
3330 } // namespace dart 3330 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698