fc88f6f20b
Change-Id: I30a93071dac20c62e96a73fa65b845b64d7f796c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279301 Reviewed-by: Mayank Patke <fishythefish@google.com>
25 lines
893 B
Dart
25 lines
893 B
Dart
// Copyright (c) 2021, 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:isolate';
|
|
|
|
import 'package:compiler/src/deferred_load/program_split_constraints/nodes.dart';
|
|
import '../../constraint_harness.dart';
|
|
|
|
void main(List<String> args, SendPort sendPort) {
|
|
waitForImportsAndInvoke(sendPort, processDeferredImports);
|
|
}
|
|
|
|
List<Node> processDeferredImports(List<String> imports) {
|
|
var step1 = 'memory:sdk/tests/web/native/main.dart#step1';
|
|
var step2 = 'memory:sdk/tests/web/native/main.dart#step2';
|
|
var step3 = 'memory:sdk/tests/web/native/main.dart#step3';
|
|
var builder = ProgramSplitBuilder();
|
|
return [
|
|
...imports.map(builder.referenceNode),
|
|
builder.orderNode(step1, step2),
|
|
builder.orderNode(step2, step3),
|
|
];
|
|
}
|