Commit 34b5565e authored by ishell's avatar ishell Committed by Commit bot

Fix for cctest/test-api/SetJitCodeEventHandler: generate less objects during...

Fix for cctest/test-api/SetJitCodeEventHandler: generate less objects during execution to avoid unwanted GCs.

BUG=v8:3899
LOG=N

Review URL: https://codereview.chromium.org/934243003

Cr-Commit-Position: refs/heads/master@{#26721}
parent 7e7e85f3
......@@ -12311,14 +12311,14 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) {
i::FLAG_incremental_marking = false;
if (i::FLAG_never_compact) return;
const char* script =
"function bar() {"
" var sum = 0;"
" for (i = 0; i < 100; ++i)"
" sum = foo(i);"
" return sum;"
"}"
"function foo(i) { return i * i; };"
"bar();";
"function bar() {"
" var sum = 0;"
" for (i = 0; i < 10; ++i)"
" sum = foo(i);"
" return sum;"
"}"
"function foo(i) { return i; };"
"bar();";
// Run this test in a new isolate to make sure we don't
// have remnants of state from other code.
......
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