OLD | NEW |
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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 if (parse_class.is_marked_for_parsing()) { | 467 if (parse_class.is_marked_for_parsing()) { |
468 parse_class.reset_is_marked_for_parsing(); | 468 parse_class.reset_is_marked_for_parsing(); |
469 } | 469 } |
470 } | 470 } |
471 for (intptr_t i = 0; i < patch_list.length(); i++) { | 471 for (intptr_t i = 0; i < patch_list.length(); i++) { |
472 const Class& parse_class = patch_list.At(i); | 472 const Class& parse_class = patch_list.At(i); |
473 if (parse_class.is_marked_for_parsing()) { | 473 if (parse_class.is_marked_for_parsing()) { |
474 parse_class.reset_is_marked_for_parsing(); | 474 parse_class.reset_is_marked_for_parsing(); |
475 } | 475 } |
476 } | 476 } |
477 Error& error = Error::Handle(zone.GetZone()); | 477 Thread* thread = Thread::Current(); |
| 478 Error& error = Error::Handle(thread->zone()); |
478 error = thread->sticky_error(); | 479 error = thread->sticky_error(); |
479 thread->clear_sticky_error(); | 480 thread->clear_sticky_error(); |
480 return error.raw(); | 481 return error.raw(); |
481 } | 482 } |
482 UNREACHABLE(); | 483 UNREACHABLE(); |
483 return Error::null(); | 484 return Error::null(); |
484 } | 485 } |
485 | 486 |
486 | 487 |
487 class CompileParsedFunctionHelper : public ValueObject { | 488 class CompileParsedFunctionHelper : public ValueObject { |
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 | 2312 |
2312 | 2313 |
2313 bool BackgroundCompiler::IsDisabled() { | 2314 bool BackgroundCompiler::IsDisabled() { |
2314 UNREACHABLE(); | 2315 UNREACHABLE(); |
2315 return true; | 2316 return true; |
2316 } | 2317 } |
2317 | 2318 |
2318 #endif // DART_PRECOMPILED_RUNTIME | 2319 #endif // DART_PRECOMPILED_RUNTIME |
2319 | 2320 |
2320 } // namespace dart | 2321 } // namespace dart |
OLD | NEW |