Revision: 20219
Author:   ja...@chromium.org
Date:     Mon Mar 24 21:32:19 2014 UTC
Log:      Revert the (wrong) fix of the argument index check asserion.

R=ish...@chromium.org
BUG=

Review URL: https://codereview.chromium.org/208423017
http://code.google.com/p/v8/source/detail?r=20219

Deleted:
 /branches/bleeding_edge/test/mjsunit/regress/regress-355486.js
Modified:
 /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc

=======================================
--- /branches/bleeding_edge/test/mjsunit/regress/regress-355486.js Mon Mar 24 20:51:36 2014 UTC
+++ /dev/null
@@ -1,13 +0,0 @@
-// 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-natives-syntax
-
-function f() { var v = arguments[0]; }
-function g() { f(); }
-
-g();
-g();
-%OptimizeFunctionOnNextCall(g);
-g();
=======================================
--- /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Mon Mar 24 20:51:36 2014 UTC +++ /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Mon Mar 24 21:32:19 2014 UTC
@@ -2910,14 +2910,9 @@
       instr->index()->IsConstantOperand()) {
int32_t const_index = ToInteger32(LConstantOperand::cast(instr->index())); int32_t const_length = ToInteger32(LConstantOperand::cast(instr->length()));
-    if (const_index < const_length) {
-      StackArgumentsAccessor args(arguments, const_length,
-                                  ARGUMENTS_DONT_CONTAIN_RECEIVER);
-      __ movp(result, args.GetArgumentOperand(const_index));
-    } else {
-      // This code should never be executed; just stop here.
-      __ int3();
-    }
+    StackArgumentsAccessor args(arguments, const_length,
+                                ARGUMENTS_DONT_CONTAIN_RECEIVER);
+    __ movp(result, args.GetArgumentOperand(const_index));
   } else {
     Register length = ToRegister(instr->length());
     // There are two words between the frame pointer and the last argument.

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to