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

Unified Diff: test/mjsunit/array-length.js

Issue 11316151: Revert r13025 and r13026 (they introduced a bug on arm and regressed octane crypto). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-length.js
diff --git a/test/mjsunit/array-length.js b/test/mjsunit/array-length.js
index 7c3063ee1c0fbd2bfa4dcd2626ef4164403a0832..16867db733b6c98bb45b9428b86755d6c1e58e5d 100644
--- a/test/mjsunit/array-length.js
+++ b/test/mjsunit/array-length.js
@@ -25,8 +25,6 @@
// (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
-
var a = [0,1,2,3];
assertEquals(0, a.length = 0);
@@ -121,42 +119,3 @@ for (var i = 0; i < 7; i++) {
t = a.length = 7;
assertEquals(7, t);
}
-
-function TestLengthAccess() {
- var TestGetLength = function(a, l, getLength, getKeyedLength) {
- assertEquals(l, getLength(a));
- assertEquals(l, getKeyedLength(a));
- }
-
- var Test = function(a, l, getLength, getKeyedLength) {
- // Make the ICs reach the state we want.
- TestGetLength(a, l, getLength, getKeyedLength);
- TestGetLength(a, l, getLength, getKeyedLength);
- TestGetLength(a, l, getLength, getKeyedLength);
- // Also test crankshaft.
- %OptimizeFunctionOnNextCall(getLength);
- %OptimizeFunctionOnNextCall(getKeyedLength);
- TestGetLength(a, l, getLength, getKeyedLength);
- }
-
- var getLength = function(a) { return a.length; }
- var getKeyedLength = function(a) { return a['length']; }
- Test(new Array(4), 4, getLength, getKeyedLength);
-
- getLength = function(a) { return a.length; }
- getKeyedLength = function(a) { return a['length']; }
- Test([1, 2, 3, 4], 4, getLength, getKeyedLength);
-
- getLength = function(a) { return a.length; }
- getKeyedLength = function(a) { return a['length']; }
- Test(Object.create(new Array(4)), 4, getLength, getKeyedLength);
-
- getLength = function(a) { return a.length; }
- getKeyedLength = function(a) { return a['length']; }
- // Set the 'length' of the global object.
- length = 4;
- var globalObject = (1,eval)("this");
- Test(globalObject, 4, getLength, getKeyedLength);
-}
-TestLengthAccess();
-
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698