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
This commit is contained in:
parent
256975f314
commit
9cc595a295
@ -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) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user