Speed up test/mjsunit/compiler/regress-gvn

Review URL: https://codereview.chromium.org/10956059

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12592 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d600358e
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --noalways-opt // Flags: --noalways-opt --allow-natives-syntax
// //
// Regression test for global value numbering. // Regression test for global value numbering.
...@@ -39,10 +39,11 @@ function test(a) { ...@@ -39,10 +39,11 @@ function test(a) {
var a = new Array(); var a = new Array();
var n = 100000000; var n = 100;
var result = 0; var result = 0;
for (var i = 0; i < n; ++i) { for (var i = 0; i < n; ++i) {
if (i == 10) %OptimizeFunctionOnNextCall(test);
a[0] = 0; a[0] = 0;
result += test(a); result += test(a);
} }
......
...@@ -103,7 +103,6 @@ compiler/property-calls: SKIP ...@@ -103,7 +103,6 @@ compiler/property-calls: SKIP
compiler/recursive-deopt: SKIP compiler/recursive-deopt: SKIP
compiler/regress-4: SKIP compiler/regress-4: SKIP
compiler/regress-funcaller: SKIP compiler/regress-funcaller: SKIP
compiler/regress-gvn: SKIP
compiler/regress-rep-change: SKIP compiler/regress-rep-change: SKIP
compiler/regress-arguments: SKIP compiler/regress-arguments: SKIP
compiler/regress-funarguments: SKIP compiler/regress-funarguments: SKIP
...@@ -161,7 +160,6 @@ compiler/property-calls: SKIP ...@@ -161,7 +160,6 @@ compiler/property-calls: SKIP
compiler/recursive-deopt: SKIP compiler/recursive-deopt: SKIP
compiler/regress-4: SKIP compiler/regress-4: SKIP
compiler/regress-funcaller: SKIP compiler/regress-funcaller: SKIP
compiler/regress-gvn: SKIP
compiler/regress-rep-change: SKIP compiler/regress-rep-change: SKIP
compiler/regress-arguments: SKIP compiler/regress-arguments: SKIP
compiler/regress-funarguments: SKIP compiler/regress-funarguments: SKIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment