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

Unified Diff: test/mjsunit/regress/regress-crbug-610228.js

Issue 1976553002: [turbofan] Properly initialize mutable heap numbers in literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 7 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/js-create-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/regress/regress-crbug-610228.js
diff --git a/test/mjsunit/regress/regress-3650-3.js b/test/mjsunit/regress/regress-crbug-610228.js
similarity index 60%
copy from test/mjsunit/regress/regress-3650-3.js
copy to test/mjsunit/regress/regress-crbug-610228.js
index 013e4df2834e20435982300303eb6260eb41b2be..ca077d5631668beb918102faf20c64f079b7bb6a 100644
--- a/test/mjsunit/regress/regress-3650-3.js
+++ b/test/mjsunit/regress/regress-crbug-610228.js
@@ -4,14 +4,8 @@
// Flags: --allow-natives-syntax
-function foo(a) {
- for (var d in a) {
- delete a[1];
- }
-}
-
-foo([1,2,3]);
-foo([2,3,4]);
+function foo() { return JSON.stringify({a: 0.1}); }
+assertEquals('{"a":0.1}', foo());
+assertEquals('{"a":0.1}', foo());
%OptimizeFunctionOnNextCall(foo);
-foo([1,2,3]);
-assertOptimized(foo);
+assertEquals('{"a":0.1}', foo());
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698