Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 92fee1715a49e9b6b43987432ca7bae2b27a3f5a..df59c1bb31e1ab327cc4fb9f1f2b077f4f30c4c6 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14581,7 +14581,7 @@ void SetFunctionEntryHookTest::RunTest() { |
RunLoopInNewEnv(isolate); |
// Check the expected invocation counts. |
- if (!i::FLAG_ignition) { |
+ if (!i::FLAG_ignition && !i::FLAG_turbo) { |
CHECK_EQ(2, CountInvocations(NULL, "bar")); |
CHECK_EQ(200, CountInvocations("bar", "foo")); |
CHECK_EQ(200, CountInvocations(NULL, "foo")); |
@@ -14822,8 +14822,9 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) { |
for (int i = 0; i < kIterations; ++i) { |
LocalContext env(isolate); |
i::AlwaysAllocateScope always_allocate(i_isolate); |
- i::heap::SimulateFullSpace(i::FLAG_ignition ? heap->old_space() |
- : heap->code_space()); |
+ i::heap::SimulateFullSpace(i::FLAG_ignition || i::FLAG_turbo |
+ ? heap->old_space() |
+ : heap->code_space()); |
CompileRun(script); |
// Keep a strong reference to the code object in the handle scope. |
@@ -21804,7 +21805,7 @@ void TestStubCache(bool primary) { |
// The test does not work with interpreter because bytecode handlers taken |
// from the snapshot already refer to ICs with disabled counters and there |
// is no way to trigger bytecode handlers recompilation. |
- if (i::FLAG_ignition) return; |
+ if (i::FLAG_ignition || i::FLAG_turbo) return; |
i::FLAG_native_code_counters = true; |
if (primary) { |