Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: test/codegen/expect/language/least_upper_bound_test_22_multi.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/least_upper_bound_test_22_multi.js
diff --git a/test/codegen/expect/language/least_upper_bound_test_22_multi.js b/test/codegen/expect/language/least_upper_bound_test_22_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..1457255896bc1e6fbc72291ed47a5c814dc9faf0
--- /dev/null
+++ b/test/codegen/expect/language/least_upper_bound_test_22_multi.js
@@ -0,0 +1,105 @@
+dart_library.library('language/least_upper_bound_test_22_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__least_upper_bound_test_22_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const least_upper_bound_test_22_multi = Object.create(null);
+ let E = () => (E = dart.constFn(least_upper_bound_test_22_multi.E$()))();
+ let F = () => (F = dart.constFn(least_upper_bound_test_22_multi.F$()))();
+ let FOfC = () => (FOfC = dart.constFn(least_upper_bound_test_22_multi.F$(least_upper_bound_test_22_multi.C)))();
+ let EOfB = () => (EOfB = dart.constFn(least_upper_bound_test_22_multi.E$(least_upper_bound_test_22_multi.B)))();
+ let EOfC = () => (EOfC = dart.constFn(least_upper_bound_test_22_multi.E$(least_upper_bound_test_22_multi.C)))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ let AAndBTovoid = () => (AAndBTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [least_upper_bound_test_22_multi.A, least_upper_bound_test_22_multi.B])))();
+ let BAndCTovoid = () => (BAndCTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [least_upper_bound_test_22_multi.B, least_upper_bound_test_22_multi.C])))();
+ let CAndDTovoid = () => (CAndDTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [least_upper_bound_test_22_multi.C, least_upper_bound_test_22_multi.D])))();
+ let EOfBAndEOfCTovoid = () => (EOfBAndEOfCTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [EOfB(), EOfC()])))();
+ let EOfBAndFOfCTovoid = () => (EOfBAndFOfCTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [EOfB(), FOfC()])))();
+ least_upper_bound_test_22_multi.A = class A extends core.Object {
+ new() {
+ this.a = null;
+ }
+ };
+ least_upper_bound_test_22_multi.B = class B extends core.Object {
+ new() {
+ this.b = null;
+ }
+ };
+ least_upper_bound_test_22_multi.C = class C extends least_upper_bound_test_22_multi.B {
+ new() {
+ this.c = null;
+ super.new();
+ }
+ };
+ least_upper_bound_test_22_multi.D = class D extends least_upper_bound_test_22_multi.B {
+ new() {
+ this.d = null;
+ super.new();
+ }
+ };
+ least_upper_bound_test_22_multi.E$ = dart.generic(T => {
+ class E extends core.Object {
+ new(e) {
+ this.e = e;
+ }
+ }
+ dart.addTypeTests(E);
+ dart.setSignature(E, {
+ constructors: () => ({new: dart.definiteFunctionType(least_upper_bound_test_22_multi.E$(T), [T])})
+ });
+ return E;
+ });
+ least_upper_bound_test_22_multi.E = E();
+ least_upper_bound_test_22_multi.F$ = dart.generic(T => {
+ class F extends least_upper_bound_test_22_multi.E$(T) {
+ new(f) {
+ this.f = f;
+ super.new(f);
+ }
+ }
+ dart.setSignature(F, {
+ constructors: () => ({new: dart.definiteFunctionType(least_upper_bound_test_22_multi.F$(T), [T])})
+ });
+ return F;
+ });
+ least_upper_bound_test_22_multi.F = F();
+ least_upper_bound_test_22_multi.main = function() {
+ least_upper_bound_test_22_multi.testAB(new least_upper_bound_test_22_multi.A(), new least_upper_bound_test_22_multi.B());
+ least_upper_bound_test_22_multi.testBC(new least_upper_bound_test_22_multi.C(), new least_upper_bound_test_22_multi.C());
+ least_upper_bound_test_22_multi.testCD(new least_upper_bound_test_22_multi.C(), new least_upper_bound_test_22_multi.D());
+ least_upper_bound_test_22_multi.testEE(new (FOfC())(new least_upper_bound_test_22_multi.C()), new (FOfC())(new least_upper_bound_test_22_multi.C()));
+ least_upper_bound_test_22_multi.testEF(new (FOfC())(new least_upper_bound_test_22_multi.C()), new (FOfC())(new least_upper_bound_test_22_multi.C()));
+ };
+ dart.fn(least_upper_bound_test_22_multi.main, VoidTovoid());
+ least_upper_bound_test_22_multi.testAB = function(a, b) {
+ let c = new least_upper_bound_test_22_multi.C();
+ };
+ dart.fn(least_upper_bound_test_22_multi.testAB, AAndBTovoid());
+ least_upper_bound_test_22_multi.testBC = function(b, c) {
+ let a = null;
+ };
+ dart.fn(least_upper_bound_test_22_multi.testBC, BAndCTovoid());
+ least_upper_bound_test_22_multi.testCD = function(c, d) {
+ };
+ dart.fn(least_upper_bound_test_22_multi.testCD, CAndDTovoid());
+ least_upper_bound_test_22_multi.testEE = function(e, f) {
+ let r2 = FOfC()._check(false ? e : f);
+ try {
+ } catch (e) {
+ }
+
+ };
+ dart.fn(least_upper_bound_test_22_multi.testEE, EOfBAndEOfCTovoid());
+ least_upper_bound_test_22_multi.testEF = function(e, f) {
+ try {
+ } catch (e) {
+ }
+
+ let r5 = null;
+ };
+ dart.fn(least_upper_bound_test_22_multi.testEF, EOfBAndFOfCTovoid());
+ // Exports:
+ exports.least_upper_bound_test_22_multi = least_upper_bound_test_22_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698