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

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

Issue 313233005: Fix missing smi check in inlined indexOf/lastIndexOf. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/hydrogen.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-382513.js
diff --git a/test/mjsunit/regress/regress-347906.js b/test/mjsunit/regress/regress-crbug-382513.js
similarity index 70%
copy from test/mjsunit/regress/regress-347906.js
copy to test/mjsunit/regress/regress-crbug-382513.js
index c751618928c93015679087ee1b500637657aa341..be8733c5e411e4b1ce2670a3317463c801b1aaa8 100644
--- a/test/mjsunit/regress/regress-347906.js
+++ b/test/mjsunit/regress/regress-crbug-382513.js
@@ -1,13 +1,10 @@
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Flags: --allow-native-syntax
-// Flags: --allow-natives-syntax --harmony
-
-function foo() {
- return Math.clz32(12.34);
-}
-
+function foo() { return [+0,false].indexOf(-(4/3)); }
foo();
foo();
%OptimizeFunctionOnNextCall(foo);
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698