summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/opt-elements-kind.js
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-07-22 15:26:27 -0700
committerTrevor Norris <trev.norris@gmail.com>2013-07-22 15:53:10 -0700
commit5777d7ab3038983d368046ab40eb34075f635348 (patch)
treeda7c01759b83e7afa463cbaac095a051f158eb44 /deps/v8/test/mjsunit/opt-elements-kind.js
parent254b711155996e379a41a569a38dd98dbd7a6e47 (diff)
downloadandroid-node-v8-5777d7ab3038983d368046ab40eb34075f635348.tar.gz
android-node-v8-5777d7ab3038983d368046ab40eb34075f635348.tar.bz2
android-node-v8-5777d7ab3038983d368046ab40eb34075f635348.zip
v8: upgrade to v8 3.20.7
Diffstat (limited to 'deps/v8/test/mjsunit/opt-elements-kind.js')
-rw-r--r--deps/v8/test/mjsunit/opt-elements-kind.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/opt-elements-kind.js b/deps/v8/test/mjsunit/opt-elements-kind.js
index 3df1d9ba2b..83ad702c2d 100644
--- a/deps/v8/test/mjsunit/opt-elements-kind.js
+++ b/deps/v8/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() {
- 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;
}
+%NeverOptimizeFunction(construct_doubles);
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;
}
+%NeverOptimizeFunction(convert_mixed);
function convert_mixed(array, value, kind) {
- try {} catch (e) {} // TODO(titzer): DisableOptimization
array[1] = value;
assertKind(kind, array);
assertEquals(value, array[1]);