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
...@@ -12313,11 +12313,11 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) { ...@@ -12313,11 +12313,11 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) {
const char* script = const char* script =
"function bar() {" "function bar() {"
" var sum = 0;" " var sum = 0;"
" for (i = 0; i < 100; ++i)" " for (i = 0; i < 10; ++i)"
" sum = foo(i);" " sum = foo(i);"
" return sum;" " return sum;"
"}" "}"
"function foo(i) { return i * i; };" "function foo(i) { return i; };"
"bar();"; "bar();";
// Run this test in a new isolate to make sure we don't // Run this test in a new isolate to make sure we don't
......
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