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

Unified Diff: test/mjsunit/compiler/regress-4413-1.js

Issue 1391543002: [builtins] Make sure argument count is always valid for C++ builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove extra newline. 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/x64/builtins-x64.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-4413-1.js
diff --git a/test/mjsunit/compiler/regress-491578.js b/test/mjsunit/compiler/regress-4413-1.js
similarity index 53%
copy from test/mjsunit/compiler/regress-491578.js
copy to test/mjsunit/compiler/regress-4413-1.js
index c27570456c31e9a191fe1f4f1ea17b80f29de98e..6f5371127d347a25ec132e2780fced789494109d 100644
--- a/test/mjsunit/compiler/regress-491578.js
+++ b/test/mjsunit/compiler/regress-4413-1.js
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --turbo-asm
+
+var foo = (function(stdlib) {
+ "use asm";
+ var bar = stdlib.Symbol;
+ function foo() { return bar("lala"); }
+ return foo;
+})(this);
-function foo(x) {
- if (x === undefined) return;
- while (true) {
- while (1 || 2) { }
- f();
- }
-}
%OptimizeFunctionOnNextCall(foo);
foo();
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698