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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 StackZone zone(thread); | 307 StackZone zone(thread); |
308 // We remember all the classes that are being compiled in these lists. This | 308 // We remember all the classes that are being compiled in these lists. This |
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 TimelineDurationScope tds(thread, | 312 TimelineDurationScope tds(thread, |
313 thread->isolate()->GetCompilerStream(), | 313 thread->isolate()->GetCompilerStream(), |
314 "CompileClass"); | 314 "CompileClass"); |
315 if (tds.enabled()) { | 315 if (tds.enabled()) { |
316 tds.SetNumArguments(1); | 316 tds.SetNumArguments(1); |
317 tds.CopyArgument( | 317 tds.CopyArgument(0, "class", cls.ToCString()); |
318 0, | |
319 "class", | |
320 const_cast<char*>(cls.ToCString())); | |
321 } | 318 } |
322 | 319 |
323 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4); | 320 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4); |
324 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4); | 321 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4); |
325 | 322 |
326 // Parse the class and all the interfaces it implements and super classes. | 323 // Parse the class and all the interfaces it implements and super classes. |
327 LongJumpScope jump; | 324 LongJumpScope jump; |
328 if (setjmp(*jump.Set()) == 0) { | 325 if (setjmp(*jump.Set()) == 0) { |
329 if (FLAG_trace_compiler) { | 326 if (FLAG_trace_compiler) { |
330 THR_Print("Compiling Class '%s'\n", cls.ToCString()); | 327 THR_Print("Compiling Class '%s'\n", cls.ToCString()); |
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 } | 1885 } |
1889 | 1886 |
1890 | 1887 |
1891 void BackgroundCompiler::EnsureInit(Thread* thread) { | 1888 void BackgroundCompiler::EnsureInit(Thread* thread) { |
1892 UNREACHABLE(); | 1889 UNREACHABLE(); |
1893 } | 1890 } |
1894 | 1891 |
1895 #endif // DART_PRECOMPILED | 1892 #endif // DART_PRECOMPILED |
1896 | 1893 |
1897 } // namespace dart | 1894 } // namespace dart |
OLD | NEW |