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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js

Issue 2435163002: fix #27631, get/set methods no longer shadow index operator (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 define(['dart_sdk'], function(dart_sdk) { 1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict'; 2 'use strict';
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
6 const BenchmarkBase$ = Object.create(null); 6 const BenchmarkBase$ = Object.create(null);
7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
8 BenchmarkBase$.Expect = class Expect extends core.Object { 8 BenchmarkBase$.Expect = class Expect extends core.Object {
9 static equals(expected, actual) { 9 static equals(expected, actual) {
10 if (!dart.equals(expected, actual)) { 10 if (!dart.equals(expected, actual)) {
11 dart.throw(dart.str`Values not equal: ${expected} vs ${actual}`); 11 dart.throw(dart.str`Values not equal: ${expected} vs ${actual}`);
12 } 12 }
13 } 13 }
14 static listEquals(expected, actual) { 14 static listEquals(expected, actual) {
15 if (expected[dartx.length] != actual[dartx.length]) { 15 if (expected[dartx.length] != actual[dartx.length]) {
16 dart.throw(dart.str`Lists have different lengths: ${expected[dartx.lengt h]} vs ${actual[dartx.length]}`); 16 dart.throw(dart.str`Lists have different lengths: ${expected[dartx.lengt h]} vs ${actual[dartx.length]}`);
17 } 17 }
18 for (let i = 0; i < dart.notNull(actual[dartx.length]); i++) { 18 for (let i = 0; i < dart.notNull(actual[dartx.length]); i++) {
19 BenchmarkBase$.Expect.equals(expected[dartx.get](i), actual[dartx.get](i )); 19 BenchmarkBase$.Expect.equals(expected[dartx._get](i), actual[dartx._get] (i));
20 } 20 }
21 } 21 }
22 fail(message) { 22 fail(message) {
23 dart.throw(message); 23 dart.throw(message);
24 } 24 }
25 }; 25 };
26 dart.setSignature(BenchmarkBase$.Expect, { 26 dart.setSignature(BenchmarkBase$.Expect, {
27 methods: () => ({fail: dart.definiteFunctionType(dart.dynamic, [dart.dynamic ])}), 27 methods: () => ({fail: dart.definiteFunctionType(dart.dynamic, [dart.dynamic ])}),
28 statics: () => ({ 28 statics: () => ({
29 equals: dart.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic]) , 29 equals: dart.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic]) ,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 report: dart.definiteFunctionType(dart.void, []) 88 report: dart.definiteFunctionType(dart.void, [])
89 }), 89 }),
90 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu nction, core.int])}), 90 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu nction, core.int])}),
91 names: ['measureFor'] 91 names: ['measureFor']
92 }); 92 });
93 // Exports: 93 // Exports:
94 return { 94 return {
95 BenchmarkBase: BenchmarkBase$ 95 BenchmarkBase: BenchmarkBase$
96 }; 96 };
97 }); 97 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698