X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fv8%2Ftest%2Fmjsunit%2Felements-transition-hoisting.js;h=9f229d2e17bbd863bd0b1909ab0e4c017b24a77b;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=76027b9ed18fdfe05a2443b4cd638e05f60c321e;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/v8/test/mjsunit/elements-transition-hoisting.js b/src/v8/test/mjsunit/elements-transition-hoisting.js index 76027b9..9f229d2 100644 --- a/src/v8/test/mjsunit/elements-transition-hoisting.js +++ b/src/v8/test/mjsunit/elements-transition-hoisting.js @@ -25,21 +25,13 @@ // (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 --smi-only-arrays +// Flags: --allow-natives-syntax // Flags: --nostress-opt // Ensure that ElementsKind transitions in various situations are hoisted (or // not hoisted) correctly, don't change the semantics programs and don't trigger // deopt through hoisting in important situations. -support_smi_only_arrays = %HasFastSmiElements(new Array(1,2,3,4,5,6)); - -if (support_smi_only_arrays) { - print("Tests include smi-only arrays."); -} else { - print("Tests do NOT include smi-only arrays."); -} - function test_wrapper() { // Make sure that a simple elements array transitions inside a loop before // stores to an array gets hoisted in a way that doesn't generate a deopt in @@ -238,9 +230,7 @@ function test_wrapper() { %ClearFunctionTypeFeedback(testStraightLineDupeElinination); } -if (support_smi_only_arrays) { - // The test is called in a test wrapper that has type feedback cleared to - // prevent the influence of allocation-sites, which learn from transitions. - test_wrapper(); - %ClearFunctionTypeFeedback(test_wrapper); -} +// The test is called in a test wrapper that has type feedback cleared to +// prevent the influence of allocation-sites, which learn from transitions. +test_wrapper(); +%ClearFunctionTypeFeedback(test_wrapper);