#include <sstream>
#include "include/v8-platform.h"
#include "src/api/api-inl.h"
#include "src/ast/ast-value-factory.h"
#include "src/ast/ast.h"
#include "src/ast/scopes.h"
#include "src/base/platform/condition-variable.h"
#include "src/base/platform/semaphore.h"
#include "src/codegen/compiler.h"
#include "src/compiler-dispatcher/lazy-compile-dispatcher.h"
#include "src/flags/flags.h"
#include "src/handles/handles.h"
#include "src/init/v8.h"
#include "src/objects/objects-inl.h"
#include "src/parsing/parse-info.h"
#include "src/parsing/parsing.h"
#include "src/parsing/scanner-character-streams.h"
#include "src/zone/zone-list-inl.h"
#include "test/unittests/test-helpers.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#ifdef DEBUG
#define DEBUG_ASSERT_EQ …
#else
#define DEBUG_ASSERT_EQ …
#endif
namespace v8 {
namespace internal {
class LazyCompileDispatcherTestFlags { … };
SaveFlags* LazyCompileDispatcherTestFlags::save_flags_ = …;
class LazyCompileDispatcherTest : public TestWithNativeContext { … };
namespace {
class DeferredPostJob { … };
class MockPlatform : public v8::Platform { … };
}
TEST_F(LazyCompileDispatcherTest, Construct) { … }
TEST_F(LazyCompileDispatcherTest, IsEnqueued) { … }
TEST_F(LazyCompileDispatcherTest, FinishNow) { … }
TEST_F(LazyCompileDispatcherTest, CompileAndFinalize) { … }
TEST_F(LazyCompileDispatcherTest, IdleTaskNoIdleTime) { … }
TEST_F(LazyCompileDispatcherTest, IdleTaskSmallIdleTime) { … }
TEST_F(LazyCompileDispatcherTest, IdleTaskException) { … }
TEST_F(LazyCompileDispatcherTest, FinishNowWithWorkerTask) { … }
TEST_F(LazyCompileDispatcherTest, IdleTaskMultipleJobs) { … }
TEST_F(LazyCompileDispatcherTest, FinishNowException) { … }
TEST_F(LazyCompileDispatcherTest, AbortJobNotStarted) { … }
TEST_F(LazyCompileDispatcherTest, AbortJobAlreadyStarted) { … }
TEST_F(LazyCompileDispatcherTest, CompileLazyFinishesDispatcherJob) { … }
TEST_F(LazyCompileDispatcherTest, CompileLazy2FinishesDispatcherJob) { … }
TEST_F(LazyCompileDispatcherTest, CompileMultipleOnBackgroundThread) { … }
}
}