| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 // also allows us to reset the marked_for_parsing state in case we see an | 309 // also allows us to reset the marked_for_parsing state in case we see an |
| 310 // error. | 310 // error. |
| 311 VMTagScope tagScope(thread, VMTag::kCompileClassTagId); | 311 VMTagScope tagScope(thread, VMTag::kCompileClassTagId); |
| 312 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4); | 312 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4); |
| 313 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4); | 313 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4); |
| 314 | 314 |
| 315 // Parse the class and all the interfaces it implements and super classes. | 315 // Parse the class and all the interfaces it implements and super classes. |
| 316 LongJumpScope jump; | 316 LongJumpScope jump; |
| 317 if (setjmp(*jump.Set()) == 0) { | 317 if (setjmp(*jump.Set()) == 0) { |
| 318 if (FLAG_trace_compiler) { | 318 if (FLAG_trace_compiler) { |
| 319 THR_Print("Compiling Class %s '%s'\n", "", cls.ToCString()); | 319 THR_Print("Compiling Class '%s'\n", cls.ToCString()); |
| 320 } | 320 } |
| 321 | 321 |
| 322 // Add the primary class which needs to be parsed to the parse list. | 322 // Add the primary class which needs to be parsed to the parse list. |
| 323 // Mark the class as parsed so that we don't recursively add the same | 323 // Mark the class as parsed so that we don't recursively add the same |
| 324 // class back into the list. | 324 // class back into the list. |
| 325 parse_list.Add(cls); | 325 parse_list.Add(cls); |
| 326 cls.set_is_marked_for_parsing(); | 326 cls.set_is_marked_for_parsing(); |
| 327 | 327 |
| 328 // Add all super classes, interface classes and patch class if one | 328 // Add all super classes, interface classes and patch class if one |
| 329 // exists to the corresponding lists. | 329 // exists to the corresponding lists. |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 | 1879 |
| 1880 void BackgroundCompiler::EnsureInit(Thread* thread) { | 1880 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 1881 UNREACHABLE(); | 1881 UNREACHABLE(); |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 #endif // DART_PRECOMPILED | 1884 #endif // DART_PRECOMPILED |
| 1885 | 1885 |
| 1886 } // namespace dart | 1886 } // namespace dart |
| OLD | NEW |