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

Unified Diff: test/mjsunit/compiler/regress-variable-liveness-let.js

Issue 1420573002: [turbofan] Fix liveness analysis for let variable in TDZ. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Relax check. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('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/compiler/regress-variable-liveness-let.js
diff --git a/test/mjsunit/regress/regress-crbug-505354.js b/test/mjsunit/compiler/regress-variable-liveness-let.js
similarity index 78%
copy from test/mjsunit/regress/regress-crbug-505354.js
copy to test/mjsunit/compiler/regress-variable-liveness-let.js
index 61c40c44dacb4091b482547cffbe6d4b3eeccb32..4c6b6936e58543844ec2684d56abd898217ce6cd 100644
--- a/test/mjsunit/regress/regress-crbug-505354.js
+++ b/test/mjsunit/compiler/regress-variable-liveness-let.js
@@ -4,11 +4,12 @@
// Flags: --allow-natives-syntax --turbo-filter=f
+"use strict";
+
function f() {
- "use strict";
- try {
- for (let i = 0; i < 10; i++) {}
- } catch(e) {}
+ %DeoptimizeNow();
+ let x = 23;
}
+
%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698