Commit 73afbaa8 authored by leszeks's avatar leszeks Committed by Commit bot

[tests] Fix test-api for non-optimizing ignition-staging runs

BUG=v8:5762

Review-Url: https://codereview.chromium.org/2590843002
Cr-Commit-Position: refs/heads/master@{#41852}
parent 6361f133
......@@ -14579,13 +14579,18 @@ void SetFunctionEntryHookTest::RunTest() {
CHECK_EQ(2, CountInvocations(NULL, "bar"));
CHECK_EQ(200, CountInvocations("bar", "foo"));
CHECK_EQ(200, CountInvocations(NULL, "foo"));
} else {
} else if (i::FLAG_crankshaft || i::FLAG_turbo) {
// For ignition we don't see the actual functions being called, instead
// we see the IterpreterEntryTrampoline at least 102 times
// we see the InterpreterEntryTrampoline at least 102 times
// (100 unoptimized calls to foo, and 2 calls to bar).
CHECK_LE(102, CountInvocations(NULL, "InterpreterEntryTrampoline"));
// We should also see the calls to the optimized function foo.
CHECK_EQ(100, CountInvocations(NULL, "foo"));
} else {
// For ignition without an optimizing compiler, we should only see the
// InterpreterEntryTrampoline.
// (200 unoptimized calls to foo, and 2 calls to bar).
CHECK_LE(202, CountInvocations(NULL, "InterpreterEntryTrampoline"));
}
// Verify that we have an entry hook on some specific stubs.
......
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