Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 8142228a4a90a8430d98dfdbb0392ed327bd12cf..9258402562e6a85078fa6b69bdd58114d82d1da4 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14572,7 +14572,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")); |
@@ -14813,8 +14813,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. |
@@ -21795,7 +21796,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) { |