5#if defined(INCLUDE_IL_PRINTER)
8#if !defined(DART_PRECOMPILED_RUNTIME)
15#if !defined(DART_PRECOMPILED_RUNTIME)
16const CodeComments& CreateCommentsFrom(compiler::Assembler* assembler) {
17 const auto& comments = assembler->comments();
18 Code::Comments&
result = Code::Comments::New(comments.length());
20 for (intptr_t i = 0; i < comments.length(); i++) {
21 result.SetPCOffsetAt(i, comments[i]->pc_offset());
22 result.SetCommentAt(i, comments[i]->comment());