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

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

Issue 1384403002: Preparation for moving reusable handles to thread and more cleanups: isolate -> thread based handle… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
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
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
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
OLDNEW
« runtime/vm/gc_marker.h ('K') | « runtime/vm/object.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698