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

Unified Diff: tests/compiler/dart2js/closure/data/nested_closures.dart

Issue 2995353002: Test the CapturedScope for local functions (Closed)
Patch Set: 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: tests/compiler/dart2js/closure/data/nested_closures.dart
diff --git a/tests/compiler/dart2js/closure/data/nested_closures.dart b/tests/compiler/dart2js/closure/data/nested_closures.dart
index 10ea3c7e789d8291f6fa61ee382fc3b352150a87..37e4e8d22c31650eb8166d08d5ae2223b51e819a 100644
--- a/tests/compiler/dart2js/closure/data/nested_closures.dart
+++ b/tests/compiler/dart2js/closure/data/nested_closures.dart
@@ -2,16 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/*test:boxed=[b1,b2,b3],requiresBox*/ test(c1, /*boxed*/ b1) {
+/*test:box=box0,boxed=[b1,b2,b3]*/ test(c1, /*boxed*/ b1) {
var /*boxed*/ b2 = 2;
var /*boxed*/ b3 = 3;
var c2 = 2;
var c3 = 3;
- /*boxed=[b1,b2,b3,b4],captured=[b1,b2,b3,b4,c1,c2,c3],free=[b1,b2,b3,box,c1,c2,c3]*/ () {
+ /*box=box1,boxed=[b4],free=[b1,b2,b3,box0,c1,c2,c3]*/ () {
var c4 = c1 + c2 + c3;
- var b4 = (b1 = 1) + (b2 = 2) + (b3 = 3);
+ var /*boxed*/ b4 = (b1 = 1) + (b2 = 2) + (b3 = 3);
- /*boxed=[b1,b2,b4],captured=[b1,b2,b4,c4],free=[b1,b2,b4,box,box,c4]*/ () {
+ /*free=[b1,b2,b4,box0,box1,c4]*/ () {
return c4 + (b1 = 1) + (b2 = 2) + (b4 = 4);
};

Powered by Google App Engine
This is Rietveld 408576698