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

Unified Diff: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js

Issue 2994203002: Optimize DDC private library files. (Closed)
Patch Set: Address comments Created 3 years, 4 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: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
diff --git a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
index 7a5352c7712bd83d6f3f3c47ff394c0df2c6a706..06ae44191fdae6d51449a4dceff3801f0024f7f3 100644
--- a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
+++ b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
@@ -46,7 +46,7 @@ define(['dart_sdk'], function(dart_sdk) {
return sunflower.querySelector("#notes");
},
get PHI() {
- return (dart.notNull(math.sqrt(5)) + 1) / 2;
+ return (math.sqrt(5) + 1) / 2;
},
get seeds() {
return 0;
@@ -63,9 +63,9 @@ define(['dart_sdk'], function(dart_sdk) {
sunflower.context.clearRect(0, 0, sunflower.MAX_D, sunflower.MAX_D);
for (let i = 0; i < dart.notNull(sunflower.seeds); i++) {
let theta = i * painter.TAU / dart.notNull(sunflower.PHI);
- let r = dart.notNull(math.sqrt(i)) * sunflower.SCALE_FACTOR;
- let x = sunflower.centerX + r * dart.notNull(math.cos(theta));
- let y = sunflower.centerY - r * dart.notNull(math.sin(theta));
+ let r = math.sqrt(i) * sunflower.SCALE_FACTOR;
+ let x = sunflower.centerX + r * math.cos(theta);
+ let y = sunflower.centerY - r * math.sin(theta);
new sunflower.SunflowerSeed.new(x, y, sunflower.SEED_RADIUS).draw(sunflower.context);
}
sunflower.notes[dartx.text] = dart.str`${sunflower.seeds} seeds`;

Powered by Google App Engine
This is Rietveld 408576698