Commit 98a16f45 authored by Mythri A's avatar Mythri A Committed by Commit Bot

[test] Fix tests to work with lazy feedback allocation

Bug: v8:8394
Change-Id: I593393f30eaa6e87cef52d8b8883010e229cb12a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1609540
Auto-Submit: Mythri Alle <mythria@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61448}
parent bf3e8eab
......@@ -370,9 +370,9 @@ TEST(FeedbackVectorUnaffectedByScopeChanges) {
CompileRun("morphing_call();");
// Now a feedback vector is allocated.
// Now a feedback vector / closure feedback cell array is allocated.
CHECK(f->shared()->is_compiled());
CHECK(!f->feedback_vector()->is_empty());
CHECK(f->has_feedback_vector() || f->has_closure_feedback_cell_array());
}
// Test that optimized code for different closures is actually shared.
......
......@@ -36,6 +36,7 @@ function read(a, index) {
return result;
}
%PrepareFunctionForOptimization(read);
var a = new Int8Array(0x2000001);
read(a, 0);
read(a, 0);
......
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