[future] Enable lazy feedback allocation in 'future' configuration

Bug: v8:8394
Change-Id: I5b4c02f5f36710b3fa15037e1fa1520b759447c4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1611798
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61501}
This commit is contained in:
Mythri A 2019-05-14 14:54:35 +01:00 committed by Commit Bot
parent d482ee8d50
commit d9cff61e56
2 changed files with 2 additions and 0 deletions

View File

@ -389,6 +389,7 @@ DEFINE_INT(budget_for_feedback_vector_allocation, 1 * KB,
"The budget in amount of bytecode executed by a function before we "
"decide to allocate feedback vectors")
DEFINE_BOOL(lazy_feedback_allocation, false, "Allocate feedback vectors lazily")
DEFINE_IMPLICATION(future, lazy_feedback_allocation)
// Flags for Ignition.
DEFINE_BOOL(ignition_elide_noneffectful_bytecodes, true,

View File

@ -10,6 +10,7 @@ function foo() {
return a[0];
}
%EnsureFeedbackVectorForFunction(foo);
Object.setPrototypeOf(Array.prototype, new Int8Array());
assertEquals(undefined, foo());
assertEquals(undefined, foo());