chromium/v8/test/unittests/api/deserialize-unittest.cc

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "include/v8-context.h"
#include "include/v8-function.h"
#include "include/v8-isolate.h"
#include "include/v8-local-handle.h"
#include "include/v8-platform.h"
#include "include/v8-primitive.h"
#include "include/v8-script.h"
#include "src/codegen/compilation-cache.h"
#include "test/unittests/heap/heap-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {

class DeserializeTest : public TestWithPlatform {};

// Check that deserialization works.
TEST_F(DeserializeTest, Deserialize) {}

// Check that deserialization with a different script rejects the cache but
// still works via standard compilation.
TEST_F(DeserializeTest, DeserializeRejectsDifferentSource) {}

class DeserializeThread : public base::Thread {};

// Check that off-thread deserialization works.
TEST_F(DeserializeTest, OffThreadDeserialize) {}

// Check that off-thread deserialization works.
TEST_F(DeserializeTest, OffThreadDeserializeRejectsDifferentSource) {}

class DeserializeStarterThread : public base::Thread {};

// Check that off-thread deserialization started from a background thread works.
TEST_F(DeserializeTest, OffThreadDeserializeStartedFromBackgroundThread) {}

class MergeDeserializedCodeTest : public DeserializeTest {};

TEST_F(MergeDeserializedCodeTest, NoMergeWhenAlreadyCompiled) {}

TEST_F(MergeDeserializedCodeTest, NoMergeWhenOriginalWasDiscarded) {}

TEST_F(MergeDeserializedCodeTest, NoMergeWhenOriginalWasDiscardedLate) {}

TEST_F(MergeDeserializedCodeTest, MergeIntoFlushedSFIs) {}

TEST_F(MergeDeserializedCodeTest, MergeBasic) {}

TEST_F(MergeDeserializedCodeTest, MergeBasicWithFlushing) {}

TEST_F(MergeDeserializedCodeTest, MergeBasicWithLateFlushing) {}

TEST_F(MergeDeserializedCodeTest, RunScriptButNoReMergeNecessary) {}

TEST_F(MergeDeserializedCodeTest, MainThreadReMerge) {}

TEST_F(MergeDeserializedCodeTest, Regress1360024) {}

TEST_F(MergeDeserializedCodeTest, MergeWithNoFollowUpWork) {}

TEST_F(MergeDeserializedCodeTest, MergeThatCompilesLazyFunction) {}

TEST_F(MergeDeserializedCodeTest, MergeThatStartsButDoesNotFinish) {}

}  // namespace v8