1e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// Copyright 2012 the V8 project authors. All rights reserved. 2e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// Redistribution and use in source and binary forms, with or without 3e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// modification, are permitted provided that the following conditions are 4e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// met: 5e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// 6e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// * Redistributions of source code must retain the above copyright 7e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// notice, this list of conditions and the following disclaimer. 8e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// * Redistributions in binary form must reproduce the above 9e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// copyright notice, this list of conditions and the following 10e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// disclaimer in the documentation and/or other materials provided 11e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// with the distribution. 12e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// * Neither the name of Google Inc. nor the names of its 13e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// contributors may be used to endorse or promote products derived 14e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// from this software without specific prior written permission. 15e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// 16e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org 28e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org// Flags: --allow-natives-syntax 29e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.org 30e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.orga = [1,2,3]; 31e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.orga.length = 1; 32e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.orgassertFalse(%HasFastHoleyElements(a)); 33e4ee6de0de64744d55b63da83156827c989c7099verwaest@chromium.orgassertTrue(%HasFastSmiElements(a)); 34