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

Unified Diff: test/mjsunit/regress/regress-arguments-liveness-analysis.js

Issue 2367483003: Remove ARGUMENTS_VARIABLE and fix crankshaft to properly detect the arguments object and keep it al… (Closed)
Patch Set: Rebaseline more Created 4 years, 3 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/cctest/interpreter/bytecode_expectations/Generators.golden ('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-arguments-liveness-analysis.js
diff --git a/test/mjsunit/regress/regress-opt-typeof-null.js b/test/mjsunit/regress/regress-arguments-liveness-analysis.js
similarity index 52%
copy from test/mjsunit/regress/regress-opt-typeof-null.js
copy to test/mjsunit/regress/regress-arguments-liveness-analysis.js
index e4721a18c5e0fb95a3b7cb323f229de9f605b64a..95c2c002624248185948380b069743cac80f4a20 100644
--- a/test/mjsunit/regress/regress-opt-typeof-null.js
+++ b/test/mjsunit/regress/regress-arguments-liveness-analysis.js
@@ -4,9 +4,17 @@
// Flags: --allow-natives-syntax
-function f() {
- return typeof null === "object";
+function r(v) { return v.f }
+function h() { }
+function y(v) {
+ var x = arguments;
+ h.apply(r(v), x);
};
-%OptimizeFunctionOnNextCall(f);
-assertTrue(f());
+y({f:3});
+y({f:3});
+y({f:3});
+
+%OptimizeFunctionOnNextCall(y);
+
+y({ f : 3, u : 4 });
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698