Commit 9cc595a2 authored by danno@chromium.org's avatar danno@chromium.org

Add asserts to try to flush out test flakiness.

R=mstarzinger@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9358033

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10669 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 256975f3
...@@ -147,6 +147,7 @@ assertKind(elements_kind.external_pixel, new PixelArray(512)); ...@@ -147,6 +147,7 @@ assertKind(elements_kind.external_pixel, new PixelArray(512));
// Crankshaft support for smi-only array elements. // Crankshaft support for smi-only array elements.
function monomorphic(array) { function monomorphic(array) {
assertKind(elements_kind.fast_smi_only, array);
for (var i = 0; i < 3; i++) { for (var i = 0; i < 3; i++) {
array[i] = i + 10; array[i] = i + 10;
} }
...@@ -157,6 +158,7 @@ function monomorphic(array) { ...@@ -157,6 +158,7 @@ function monomorphic(array) {
} }
} }
var smi_only = new Array(1, 2, 3); var smi_only = new Array(1, 2, 3);
assertKind(elements_kind.fast_smi_only, smi_only);
for (var i = 0; i < 3; i++) monomorphic(smi_only); for (var i = 0; i < 3; i++) monomorphic(smi_only);
%OptimizeFunctionOnNextCall(monomorphic); %OptimizeFunctionOnNextCall(monomorphic);
monomorphic(smi_only); monomorphic(smi_only);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment