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

Unified Diff: test/mjsunit/elements-kind.js

Issue 17872002: Fix elements-kind test to disable optimization of important functions under test; add simpler versi… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months 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 | « no previous file | test/mjsunit/opt-elements-kind.js » ('j') | test/mjsunit/opt-elements-kind.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/elements-kind.js
diff --git a/test/mjsunit/elements-kind.js b/test/mjsunit/elements-kind.js
index 0e8e209ef7e9ffdd16ced1017b6945a850fe5431..247aa8974758cad96d3968be4f3a92def0acae06 100644
--- a/test/mjsunit/elements-kind.js
+++ b/test/mjsunit/elements-kind.js
@@ -171,18 +171,21 @@ monomorphic(smi_only);
if (support_smi_only_arrays) {
function construct_smis() {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
var a = [0, 0, 0];
a[0] = 0; // Send the COW array map to the steak house.
assertKind(elements_kind.fast_smi_only, a);
return a;
}
function construct_doubles() {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
var a = construct_smis();
a[0] = 1.5;
assertKind(elements_kind.fast_double, a);
return a;
}
function construct_objects() {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
var a = construct_smis();
a[0] = "one";
assertKind(elements_kind.fast, a);
@@ -191,6 +194,7 @@ if (support_smi_only_arrays) {
// Test crankshafted transition SMI->DOUBLE.
function convert_to_double(array) {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
array[1] = 2.5;
assertKind(elements_kind.fast_double, array);
assertEquals(2.5, array[1]);
@@ -202,6 +206,7 @@ if (support_smi_only_arrays) {
convert_to_double(smis);
// Test crankshafted transitions SMI->FAST and DOUBLE->FAST.
function convert_to_fast(array) {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
array[1] = "two";
assertKind(elements_kind.fast, array);
assertEquals("two", array[1]);
@@ -218,6 +223,7 @@ if (support_smi_only_arrays) {
// Test transition chain SMI->DOUBLE->FAST (crankshafted function will
// transition to FAST directly).
function convert_mixed(array, value, kind) {
+ try {} catch (e) {} // TODO(titzer): DisableOptimization
mvstanton 2013/06/26 13:21:43 What is the timeframe to bring these back to allow
titzer 2013/06/26 17:53:59 As it turns out, what this test does is check the
array[1] = value;
assertKind(kind, array);
assertEquals(value, array[1]);
« no previous file with comments | « no previous file | test/mjsunit/opt-elements-kind.js » ('j') | test/mjsunit/opt-elements-kind.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698