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

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

Issue 1407533005: Eliminate RawClass::patch_class_ field (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
« no previous file with comments | « no previous file | runtime/vm/object.h » ('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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) { 242 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) {
243 parse_list->Add(parse_class); 243 parse_list->Add(parse_class);
244 parse_class.set_is_marked_for_parsing(); 244 parse_class.set_is_marked_for_parsing();
245 } 245 }
246 parse_class ^= parse_class.SuperClass(); 246 parse_class ^= parse_class.SuperClass();
247 } 247 }
248 248
249 // Add patch classes if they exist to the parse list if they have not already 249 // Add patch classes if they exist to the parse list if they have not already
250 // been parsed and patched. Mark the class as parsed so that we don't 250 // been parsed and patched. Mark the class as parsed so that we don't
251 // recursively add it back into the list. 251 // recursively add it back into the list.
252 parse_class ^= cls.patch_class(); 252 parse_class ^= cls.GetPatchClass();
253 if (!parse_class.IsNull()) { 253 if (!parse_class.IsNull()) {
254 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) { 254 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) {
255 patch_list->Add(parse_class); 255 patch_list->Add(parse_class);
256 parse_class.set_is_marked_for_parsing(); 256 parse_class.set_is_marked_for_parsing();
257 } 257 }
258 } 258 }
259 } 259 }
260 260
261 261
262 RawError* Compiler::CompileClass(const Class& cls) { 262 RawError* Compiler::CompileClass(const Class& cls) {
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 isolate->current_zone(), GrowableObjectArray::New())); 1556 isolate->current_zone(), GrowableObjectArray::New()));
1557 start_task = true; 1557 start_task = true;
1558 } 1558 }
1559 } 1559 }
1560 if (start_task) { 1560 if (start_task) {
1561 Dart::thread_pool()->Run(isolate->background_compiler()); 1561 Dart::thread_pool()->Run(isolate->background_compiler());
1562 } 1562 }
1563 } 1563 }
1564 1564
1565 } // namespace dart 1565 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698