28d7984e31
Issue: https://github.com/dart-lang/sdk/issues/61635 Change-Id: I7476ec7e66edd958c66e31dabcd6ab8d818594e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/509640 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
23 lines
687 B
Dart
23 lines
687 B
Dart
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'dart:typed_data';
|
|
|
|
import 'package:cfg/ir/functions.dart';
|
|
import 'package:native_compiler/back_end/object_pool.dart';
|
|
|
|
/// Generated code for a function or a stub.
|
|
class Code(
|
|
final String name,
|
|
final CFunction? function,
|
|
final Uint8List instructions,
|
|
final ObjectPool objectPool,
|
|
) {
|
|
/// Offset of instructions in the resulting image.
|
|
int? instructionsImageOffset;
|
|
}
|
|
|
|
/// Comsumer of the generated code.
|
|
typedef CodeConsumer = void Function(Code);
|