1bad9304a0
Also remove some duplicated code so libraries are mostly only printed in one place. Change-Id: I7cb86bff1938f05631d7eb3432deda2c9939f402 Reviewed-on: https://dart-review.googlesource.com/c/90226 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
library #lib;
|
|
import self as self;
|
|
import "./hello.dart" as hel;
|
|
|
|
import "#pkg/vm/testcases/bytecode/hello.dart" deferred as lib;
|
|
|
|
[@vm.bytecode=
|
|
Bytecode {
|
|
Entry 1
|
|
CheckStack 0
|
|
PushNull
|
|
PushConstant CP#1
|
|
IndirectStaticCall 1, CP#0
|
|
PopLocal r0
|
|
PushConstant CP#3
|
|
IndirectStaticCall 0, CP#2
|
|
ReturnTOS
|
|
}
|
|
ConstantPool {
|
|
[0] = ArgDesc num-args 1, num-type-args 0, names []
|
|
[1] = StaticICData target 'dart:async::Future::value (constructor)', arg-desc CP#0
|
|
[2] = ArgDesc num-args 0, num-type-args 0, names []
|
|
[3] = StaticICData target '#pkg/vm/testcases/bytecode/hello.dart::main', arg-desc CP#2
|
|
}
|
|
]static method callDeferred() → dynamic
|
|
return let final dynamic #t1 = CheckLibraryIsLoaded(lib) in hel::main();
|
|
[@vm.bytecode=
|
|
Bytecode {
|
|
Entry 0
|
|
CheckStack 0
|
|
PushNull
|
|
PushConstant CP#1
|
|
IndirectStaticCall 1, CP#0
|
|
ReturnTOS
|
|
}
|
|
ConstantPool {
|
|
[0] = ArgDesc num-args 1, num-type-args 0, names []
|
|
[1] = StaticICData target 'dart:async::Future::value (constructor)', arg-desc CP#0
|
|
}
|
|
]static method testLoadLibrary() → dynamic
|
|
return LoadLibrary(lib);
|
|
[@vm.bytecode=
|
|
Bytecode {
|
|
Entry 0
|
|
CheckStack 0
|
|
PushNull
|
|
ReturnTOS
|
|
}
|
|
ConstantPool {
|
|
}
|
|
]static method main() → dynamic {}
|