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

Side by Side Diff: test/codegen/expect/cascade.js

Issue 1062823004: Fix a couple codegen crashers (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « test/codegen/cascade.dart ('k') | test/codegen/expect/cascade.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var cascade; 1 var cascade;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class A extends core.Object { 4 class A extends core.Object {
5 A() { 5 A() {
6 this.x = null; 6 this.x = null;
7 } 7 }
8 } 8 }
9 // Function test_closure_with_mutate: () → void 9 // Function test_closure_with_mutate: () → void
10 function test_closure_with_mutate() { 10 function test_closure_with_mutate() {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Function test_VariableDeclaration_first: () → void 66 // Function test_VariableDeclaration_first: () → void
67 function test_VariableDeclaration_first() { 67 function test_VariableDeclaration_first() {
68 let a = (() => { 68 let a = (() => {
69 let _ = new core.List.from([]); 69 let _ = new core.List.from([]);
70 _[core.$length] = 2; 70 _[core.$length] = 2;
71 _[core.$add](3); 71 _[core.$add](3);
72 return _; 72 return _;
73 })(), b = 2; 73 })(), b = 2;
74 core.print(a); 74 core.print(a);
75 } 75 }
76 // Function test_increment: () → void
77 function test_increment() {
78 let a = new A();
79 let y = ((() => {
80 a.x = dart.dbinary(a.x, '+', 1);
81 a.x = dart.dbinary(a.x, '-', 1);
82 return a;
83 })());
84 }
76 let Base$ = dart.generic(function(T) { 85 let Base$ = dart.generic(function(T) {
77 class Base extends core.Object { 86 class Base extends core.Object {
78 Base() { 87 Base() {
79 this.x = new core.List$(T).from([]); 88 this.x = new core.List$(T).from([]);
80 } 89 }
81 } 90 }
82 return Base; 91 return Base;
83 }); 92 });
84 let Base = Base$(); 93 let Base = Base$();
85 class Foo extends Base$(core.int) { 94 class Foo extends Base$(core.int) {
86 test_final_field_generic(t) { 95 test_final_field_generic(t) {
87 this.x[core.$add](1); 96 this.x[core.$add](1);
88 this.x[core.$add](2); 97 this.x[core.$add](2);
89 this.x[core.$add](3); 98 this.x[core.$add](3);
90 this.x[core.$add](4); 99 this.x[core.$add](4);
91 } 100 }
92 } 101 }
93 // Exports: 102 // Exports:
94 exports.A = A; 103 exports.A = A;
95 exports.test_closure_with_mutate = test_closure_with_mutate; 104 exports.test_closure_with_mutate = test_closure_with_mutate;
96 exports.test_closure_without_mutate = test_closure_without_mutate; 105 exports.test_closure_without_mutate = test_closure_without_mutate;
97 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; 106 exports.test_mutate_inside_cascade = test_mutate_inside_cascade;
98 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; 107 exports.test_mutate_outside_cascade = test_mutate_outside_cascade;
99 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; 108 exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
100 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; 109 exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
101 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; 110 exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
111 exports.test_increment = test_increment;
102 exports.Base$ = Base$; 112 exports.Base$ = Base$;
103 exports.Base = Base; 113 exports.Base = Base;
104 exports.Foo = Foo; 114 exports.Foo = Foo;
105 })(cascade || (cascade = {})); 115 })(cascade || (cascade = {}));
OLDNEW
« no previous file with comments | « test/codegen/cascade.dart ('k') | test/codegen/expect/cascade.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698