#include <memory>
#include "include/v8-isolate.h"
#include "src/codegen/code-desc.h"
#include "src/execution/isolate.h"
#include "src/handles/handles-inl.h"
#include "src/heap/heap-inl.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using FactoryCodeBuilderTest = TestWithIsolate;
TEST_F(FactoryCodeBuilderTest, Factory_CodeBuilder) { … }
constexpr int kInstructionSize = …;
static_assert …;
size_t NearHeapLimitCallback(void* raw_bool, size_t current_heap_limit,
size_t initial_heap_limit) { … }
class FactoryCodeBuilderOOMTest : public TestWithIsolate { … };
TEST_F(FactoryCodeBuilderOOMTest, Factory_CodeBuilder_BuildOOM) { … }
TEST_F(FactoryCodeBuilderOOMTest, Factory_CodeBuilder_TryBuildOOM) { … }
}
}