Index: test/mjsunit/opt-elements-kind.js |
diff --git a/test/mjsunit/opt-elements-kind.js b/test/mjsunit/opt-elements-kind.js |
index b0f94f257d6276df5e65e68afd843cb1277f3c90..83ad702c2d2c55991daa1bed2aafa475a4f6315a 100644 |
--- a/test/mjsunit/opt-elements-kind.js |
+++ b/test/mjsunit/opt-elements-kind.js |
@@ -108,24 +108,24 @@ function assertKind(expected, obj, name_opt) { |
assertEquals(expected, getKind(obj), name_opt); |
} |
+%NeverOptimizeFunction(construct_smis); |
function construct_smis() { |
- %NeverOptimize(); |
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; |
} |
+%NeverOptimizeFunction(construct_doubles); |
function construct_doubles() { |
- %NeverOptimize(); |
var a = construct_smis(); |
a[0] = 1.5; |
assertKind(elements_kind.fast_double, a); |
return a; |
} |
+%NeverOptimizeFunction(convert_mixed); |
function convert_mixed(array, value, kind) { |
- %NeverOptimize(); |
array[1] = value; |
assertKind(kind, array); |
assertEquals(value, array[1]); |