Reviewers: Igor Sheludko,

Description:
Make some ARM test cases faster.

[email protected]

Please review this at https://codereview.chromium.org/85473004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+5, -5 lines):
  M src/arm/simulator-arm.h
  M test/mjsunit/compiler/osr-with-args.js
  M test/mjsunit/regress/regress-2790.js


Index: src/arm/simulator-arm.h
diff --git a/src/arm/simulator-arm.h b/src/arm/simulator-arm.h
index e392c5cb3637045e7ab43613ad1675a5e82db01b..0af5162e9380e1beafe512948129c62cb1d91443 100644
--- a/src/arm/simulator-arm.h
+++ b/src/arm/simulator-arm.h
@@ -269,7 +269,7 @@ class Simulator {

   // Checks if the current instruction should be executed based on its
   // condition bits.
-  bool ConditionallyExecute(Instruction* instr);
+  inline bool ConditionallyExecute(Instruction* instr);

// Helper functions to set the conditional flags in the architecture state.
   void SetNZFlags(int32_t val);
Index: test/mjsunit/compiler/osr-with-args.js
diff --git a/test/mjsunit/compiler/osr-with-args.js b/test/mjsunit/compiler/osr-with-args.js index 44fa1cb2cf9d0a1fcf3689b03fc01cc4e9f4eafc..4817ad7d4449001b7591dbd0c5adbcedc04b62e3 100644
--- a/test/mjsunit/compiler/osr-with-args.js
+++ b/test/mjsunit/compiler/osr-with-args.js
@@ -29,7 +29,7 @@

 function f() {
   var sum = 0;
-  for (var i = 0; i < 1000000; i++) {
+  for (var i = 0; i < 100000; i++) {
     var t = arguments[0] + 2;
     var x = arguments[1] + 2;
     var y = t + x + 5;
@@ -39,6 +39,6 @@ function f() {
   return sum;
 }

-for (var i = 0; i < 4; i++) {
-  assertEquals(17000000, f(2, 3));
+for (var i = 0; i < 3; i++) {
+  assertEquals(1700000, f(2, 3));
 }
Index: test/mjsunit/regress/regress-2790.js
diff --git a/test/mjsunit/regress/regress-2790.js b/test/mjsunit/regress/regress-2790.js index 86305b8867a1b96c65a1731c98bc9a331d9197aa..927f2607cc1f16ab56acdb21d1a77fd4dc8dbe58 100644
--- a/test/mjsunit/regress/regress-2790.js
+++ b/test/mjsunit/regress/regress-2790.js
@@ -26,6 +26,6 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 // Test that we can create arrays of any size.
-for (var i = 1000; i < 1000000; i += 97) {
+for (var i = 1000; i < 1000000; i += 197) {
   new Array(i);
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to