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

Unified Diff: test/mjsunit/compiler/alloc-number-debug.js

Issue 138503008: Speed up some mjsunit test cases and clean up test expectations for arm and mips. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove useless calls in test. Created 6 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 | « no previous file | test/mjsunit/compiler/regress-arguments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/alloc-number-debug.js
diff --git a/test/mjsunit/compiler/alloc-number.js b/test/mjsunit/compiler/alloc-number-debug.js
similarity index 87%
copy from test/mjsunit/compiler/alloc-number.js
copy to test/mjsunit/compiler/alloc-number-debug.js
index 85c39de431fd7ec7264e277f7ce727ad5f7f1a63..ccfcc0c185a6d29c0acfc3c217276434b71f130a 100644
--- a/test/mjsunit/compiler/alloc-number.js
+++ b/test/mjsunit/compiler/alloc-number-debug.js
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,15 +25,20 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Flags: --allow-natives-syntax
// Try to get a GC because of a heap number allocation while we
// have live values (o) in a register.
function f(o) {
var x = 1.5;
var y = 2.5;
- for (var i = 1; i < 100000; i+=2) o.val = x + y + i;
+ for (var i = 1; i < 3; i += 1) {
+ %SetAllocationTimeout(1, 0, false);
+ o.val = x + y + i;
+ %SetAllocationTimeout(-1, -1, true);
+ }
return o;
}
var o = { val: 0 };
-for (var i = 0; i < 100; i++) f(o);
+f(o);
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-arguments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698