[vm] Only use IL print functions if available

https://dart-review.googlesource.com/c/sdk/+/241607 broke product
builds.

TEST=SDK build

Change-Id: I996e0554e77798e2c5cac3521b15011da4885a62
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-product-arm64c-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241749
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Daco Harkes 2022-04-20 16:51:24 +00:00 committed by Commit Bot
parent 147dca35a3
commit c440a0d2bc

View file

@ -6596,8 +6596,10 @@ void FfiCallInstr::EmitParamMoves(FlowGraphCompiler* compiler,
// originate from parameters and thus are non-constant.
UNREACHABLE();
} else {
#if defined(INCLUDE_IL_PRINTER)
__ Comment("def_target %s <- origin %s %s", def_target.ToCString(),
origin.ToCString(), RepresentationToCString(origin_rep));
#endif // defined(INCLUDE_IL_PRINTER)
#ifdef DEBUG
// Stack arguments split are in word-size chunks. These chunks can copy
// too much. However, that doesn't matter in practise because we process