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

Unified Diff: test/mjsunit/compiler/regress-v8-5573.js

Issue 2458623002: [turbofan] Relax a too-strict dcheck. (Closed)
Patch Set: Test Created 4 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/simplified-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-v8-5573.js
diff --git a/test/mjsunit/regress/regress-opt-typeof-null.js b/test/mjsunit/compiler/regress-v8-5573.js
similarity index 82%
copy from test/mjsunit/regress/regress-opt-typeof-null.js
copy to test/mjsunit/compiler/regress-v8-5573.js
index e4721a18c5e0fb95a3b7cb323f229de9f605b64a..216b791a713bbb5977aeb8248924980da2a6ae2d 100644
--- a/test/mjsunit/regress/regress-opt-typeof-null.js
+++ b/test/mjsunit/compiler/regress-v8-5573.js
@@ -4,9 +4,12 @@
// Flags: --allow-natives-syntax
+var global = true;
+global = false;
+
function f() {
- return typeof null === "object";
-};
+ return !global;
+}
%OptimizeFunctionOnNextCall(f);
assertTrue(f());
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698