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

Unified Diff: test/mjsunit/asm/int32modb.js

Issue 890543002: [turbofan] Fix OSR compilations of for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/graph-builder.cc ('k') | test/mjsunit/compiler/osr-forin.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/int32modb.js
diff --git a/test/mjsunit/asm/int32mod.js b/test/mjsunit/asm/int32modb.js
similarity index 80%
copy from test/mjsunit/asm/int32mod.js
copy to test/mjsunit/asm/int32modb.js
index 22fa81384d49af081f32a3a78b51cebf26d4dee8..5081b49ae5c83f8fd0db6bd05affd7b2b453e865 100644
--- a/test/mjsunit/asm/int32mod.js
+++ b/test/mjsunit/asm/int32modb.js
@@ -1,4 +1,4 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
+// Copyright 2015 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.
@@ -17,8 +17,8 @@ var mod = (function Module(stdlib, foreign, heap) {
})(stdlib, foreign, heap).mod;
var divisors = [-2147483648, -32 * 1024, -1000, -16, -7, -2, -1, 0,
- 1, 3, 4, 10, 64, 100, 1024, 2147483647];
-for (var i in divisors) {
+ 1, 3, 4, 10, 64, 99, 1023, 1024, 2147483647];
+for (var i = 0; i < divisors.length; i++) {
var divisor = divisors[i];
for (var dividend = -2147483648; dividend < 2147483648; dividend += 3999773) {
assertEquals((dividend % divisor) | 0, mod(dividend, divisor));
« no previous file with comments | « src/compiler/graph-builder.cc ('k') | test/mjsunit/compiler/osr-forin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698