Files
sdk/pkg/vm/testcases/bytecode/deferred_lib.dart.expect
T
Jens Johansen 1bad9304a0 Print user-imports and parts when printing ast to text
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>
2019-01-21 12:10:16 +00:00

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 {}