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

Unified Diff: test/codegen/expect/BenchmarkBase.js

Issue 1145283002: Use short array syntax in method signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 7 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
« no previous file with comments | « test/browser/runtime_tests.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase.js
index a4a2c37ee954dda4f98235659a69e85bfa9e4a42..f5e1cea83dde9422edbd26cea468b44b7fd97d0b 100644
--- a/test/codegen/expect/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase.js
@@ -21,10 +21,10 @@ var core = dart.import(core);
}
}
dart.setSignature(Expect, {
- methods: () => ({fail: dart.functionType(dart.dynamic, [dart.dynamic])}),
+ methods: () => ({fail: [dart.dynamic, [dart.dynamic]]}),
statics: () => ({
- equals: dart.functionType(dart.void, [dart.dynamic, dart.dynamic]),
- listEquals: dart.functionType(dart.void, [core.List, core.List])
+ equals: [dart.void, [dart.dynamic, dart.dynamic]],
+ listEquals: [dart.void, [core.List, core.List]]
}),
names: ['equals', 'listEquals']
});
@@ -74,15 +74,15 @@ var core = dart.import(core);
}
dart.setSignature(BenchmarkBase, {
methods: () => ({
- run: dart.functionType(dart.void, []),
- warmup: dart.functionType(dart.void, []),
- exercise: dart.functionType(dart.void, []),
- setup: dart.functionType(dart.void, []),
- teardown: dart.functionType(dart.void, []),
- measure: dart.functionType(core.double, []),
- report: dart.functionType(dart.void, [])
+ run: [dart.void, []],
+ warmup: [dart.void, []],
+ exercise: [dart.void, []],
+ setup: [dart.void, []],
+ teardown: [dart.void, []],
+ measure: [core.double, []],
+ report: [dart.void, []]
}),
- statics: () => ({measureFor: dart.functionType(core.double, [core.Function, core.int])}),
+ statics: () => ({measureFor: [core.double, [core.Function, core.int]]}),
names: ['measureFor']
});
// Exports:
« no previous file with comments | « test/browser/runtime_tests.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698