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

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

Issue 793453004: Reland of "TransitionArray now uses <is_data_property, name, attributes> tuple as a key, which allo… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Post-rebase fixes Created 6 years 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/cctest/test-transitions.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-430846.js
diff --git a/test/mjsunit/compiler/opt-next-call.js b/test/mjsunit/regress/regress-crbug-430846.js
similarity index 53%
copy from test/mjsunit/compiler/opt-next-call.js
copy to test/mjsunit/regress/regress-crbug-430846.js
index 6366c7d72e3d7f69662dfcab858ce5b09b29da81..3047c7fc34202b42f71ee78cd19d6ade0df62349 100644
--- a/test/mjsunit/compiler/opt-next-call.js
+++ b/test/mjsunit/regress/regress-crbug-430846.js
@@ -4,10 +4,11 @@
// Flags: --allow-natives-syntax
-function foo() {
- return "fooed";
-}
+function foo() { return 1; };
+var o1 = {};
+o1.foo = foo;
-%OptimizeFunctionOnNextCall(foo);
-assertEquals("fooed", foo());
-assertOptimized(foo);
+var json = '{"foo": {"x": 1}}';
+var o2 = JSON.parse(json);
+var o3 = JSON.parse(json);
+assertTrue(%HaveSameMap(o2, o3));
« no previous file with comments | « test/cctest/test-transitions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698