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

Unified Diff: test/mjsunit/es6/regress/regress-468661.js

Issue 981203003: Stack allocate lexical locals + hoist stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Feedback + rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/es6/debug-function-scopes.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/regress/regress-468661.js
diff --git a/test/mjsunit/es6/regress/regress-468661.js b/test/mjsunit/es6/regress/regress-468661.js
index 656190da0b052187714d5f786ba88b15d53c4979..e569474d23225495e78a8bf38dbd639ec39c1ee2 100644
--- a/test/mjsunit/es6/regress/regress-468661.js
+++ b/test/mjsunit/es6/regress/regress-468661.js
@@ -9,7 +9,7 @@ var exception = null;
var break_count = 0;
var expected_values =
- [ReferenceError, ReferenceError, 0, 0, 0, 0, 0, 1, ReferenceError, ReferenceError];
+ [ReferenceError, undefined, 0, 0, 0, 0, 1, ReferenceError, ReferenceError];
function listener(event, exec_state, event_data, data) {
try {
@@ -39,6 +39,7 @@ function listener(event, exec_state, event_data, data) {
assertTrue(v instanceof ReferenceError);
} else {
assertSame(expected_values[break_count], v);
+
}
++break_count;
@@ -62,14 +63,14 @@ var sum = 0;
debugger; // Break 0.
for (let i=0; // Break 1.
- i < 1; // Break 2. // Break 3. // Break 6. // Break 7.
+ i < 1; // Break 2. // Break 5. // Break 6.
i++) {
- let key = i; // Break 4.
- sum += key; // Break 5.
+ let key = i; // Break 3.
+ sum += key; // Break 4.
}
-}()); // Break 8.
+}()); // Break 7.
-assertNull(exception); // Break 9.
+assertNull(exception); // Break 8.
assertEquals(expected_breaks, break_count);
Debug.setListener(null);
« no previous file with comments | « test/mjsunit/es6/debug-function-scopes.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698