Commit 35253de7 authored by Mythri A's avatar Mythri A Committed by Commit Bot

Fix a failing mjsunit test with lazy feedback allocation

Bug: v8:8394
Change-Id: I02551ff3d51e914f5a24f221186f23a8e3d2cc77
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1648096Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62026}
parent 1c5d1135
......@@ -18,6 +18,7 @@ var fixed_double_elements = new Float64Array(1);
function opt_store() { fixed_double_elements[0] = f_view[0]; }
%PrepareFunctionForOptimization(opt_store);
opt_store();
opt_store();
%OptimizeFunctionOnNextCall(opt_store);
......@@ -28,6 +29,7 @@ assertEquals(i_view[0], i32[0]);
assertEquals(i_view[1], i32[1]);
var doubles = [0.5];
%PrepareFunctionForOptimization(loader);
loader(doubles, fixed_double_elements, 0);
loader(doubles, fixed_double_elements, 0);
%OptimizeFunctionOnNextCall(loader);
......
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