Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
vm
code_comments.cc
Go to the documentation of this file.
1
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
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.
4
#include "
vm/globals.h
"
// For INCLUDE_IL_PRINTER
5
#if defined(INCLUDE_IL_PRINTER)
6
7
#include "
vm/code_comments.h
"
8
#if !defined(DART_PRECOMPILED_RUNTIME)
9
#include "
vm/compiler/assembler/assembler.h
"
10
#endif
// !defined(DART_PRECOMPILED_RUNTIME)
11
#include "
vm/object.h
"
12
13
namespace
dart
{
14
15
#if !defined(DART_PRECOMPILED_RUNTIME)
16
const
CodeComments& CreateCommentsFrom(compiler::Assembler* assembler) {
17
const
auto
& comments = assembler->comments();
18
Code::Comments&
result
= Code::Comments::New(comments.length());
19
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());
23
}
24
25
return
result
;
26
}
27
#endif
// !defined(DART_PRECOMPILED_RUNTIME)
28
29
}
// namespace dart
30
#endif
// defined(INCLUDE_IL_PRINTER)
assembler.h
code_comments.h
i
int i
Definition:
fl_socket_accessible.cc:18
result
GAsyncResult * result
Definition:
fl_text_input_plugin.cc:106
dart
Definition:
dart_vm.cc:33
object.h
globals.h
Generated on Sun Jun 23 2024 21:55:26 for Flutter Engine by
1.9.4