OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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/precompiler.h" | 5 #include "vm/precompiler.h" |
6 | 6 |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
9 #include "vm/log.h" | 9 #include "vm/log.h" |
10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 Library& lib = Library::Handle(Z); | 99 Library& lib = Library::Handle(Z); |
100 Class& cls = Class::Handle(Z); | 100 Class& cls = Class::Handle(Z); |
101 Array& functions = Array::Handle(Z); | 101 Array& functions = Array::Handle(Z); |
102 Function& function = Function::Handle(Z); | 102 Function& function = Function::Handle(Z); |
103 | 103 |
104 for (intptr_t i = 0; i < libraries_.Length(); i++) { | 104 for (intptr_t i = 0; i < libraries_.Length(); i++) { |
105 lib ^= libraries_.At(i); | 105 lib ^= libraries_.At(i); |
106 ClassDictionaryIterator it(lib, ClassDictionaryIterator::kIteratePrivate); | 106 ClassDictionaryIterator it(lib, ClassDictionaryIterator::kIteratePrivate); |
107 while (it.HasNext()) { | 107 while (it.HasNext()) { |
108 cls = it.GetNextClass(); | 108 cls = it.GetNextClass(); |
109 error_ = cls.EnsureIsFinalized(I); | 109 error_ = cls.EnsureIsFinalized(thread_); |
110 if (!error_.IsNull()) { | 110 if (!error_.IsNull()) { |
111 Jump(error_); | 111 Jump(error_); |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 for (intptr_t i = 0; i < libraries_.Length(); i++) { | 116 for (intptr_t i = 0; i < libraries_.Length(); i++) { |
117 lib ^= libraries_.At(i); | 117 lib ^= libraries_.At(i); |
118 ClassDictionaryIterator it(lib, ClassDictionaryIterator::kIteratePrivate); | 118 ClassDictionaryIterator it(lib, ClassDictionaryIterator::kIteratePrivate); |
119 while (it.HasNext()) { | 119 while (it.HasNext()) { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 for (intptr_t j = 0; j < closures.Length(); j++) { | 685 for (intptr_t j = 0; j < closures.Length(); j++) { |
686 function ^= closures.At(j); | 686 function ^= closures.At(j); |
687 ASSERT(function.HasCode()); | 687 ASSERT(function.HasCode()); |
688 } | 688 } |
689 } | 689 } |
690 } | 690 } |
691 } | 691 } |
692 } | 692 } |
693 | 693 |
694 } // namespace dart | 694 } // namespace dart |
OLD | NEW |