Reviewers: Michael Starzinger,
Message:
PTAL
Description:
Fix for cctest/test-api/SetJitCodeEventHandler: generate less objects during
execution to avoid unwanted GCs.
BUG=v8:3899
LOG=N
Please review this at https://codereview.chromium.org/934243003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+8, -8 lines):
M test/cctest/test-api.cc
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index
5b11386d47c72f0bae3d5857b1e1996a139ace95..7ccb0a552a98f6454c485c029ff52cbb1c4cbef9
100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -12313,14 +12313,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.
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.