chromium/v8/test/unittests/objects/object-unittest.cc

// Copyright 2016 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 <cmath>
#include <iostream>
#include <limits>

#include "src/api/api-inl.h"
#include "src/codegen/compiler.h"
#include "src/objects/hash-table-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/objects.h"
#include "src/objects/string-set.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {
namespace internal {

namespace {

bool IsInStringInstanceTypeList(InstanceType instance_type) {}

void CheckOneInstanceType(InstanceType instance_type) {}

}  // namespace

TEST(Object, InstanceTypeList) {}

TEST(Object, InstanceTypeListOrder) {}

TEST(Object, StructListOrder) {}

using ObjectWithIsolate = TestWithIsolate;

TEST_F(ObjectWithIsolate, DictionaryGrowth) {}

TEST_F(TestWithNativeContext, EmptyFunctionScopeInfo) {}

using ObjectTest = TestWithContext;

static void CheckObject(Isolate* isolate, DirectHandle<Object> obj,
                        const char* string) {}

static void CheckSmi(Isolate* isolate, int value, const char* string) {}

static void CheckString(Isolate* isolate, const char* value,
                        const char* string) {}

static void CheckNumber(Isolate* isolate, double value, const char* string) {}

static void CheckBoolean(Isolate* isolate, bool value, const char* string) {}

TEST_F(ObjectTest, NoSideEffectsToString) {}

TEST_F(ObjectTest, EnumCache) {}

TEST_F(ObjectTest, ObjectMethodsThatTruncateMinusZero) {}

#define TEST_FUNCTION_KIND

bool FunctionKindIsArrowFunction(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsAsyncGeneratorFunction(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsGeneratorFunction(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsAsyncFunction(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsConciseMethod(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsAccessorFunction(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsDefaultConstructor(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsBaseConstructor(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsDerivedConstructor(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsClassConstructor(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsConstructable(FunctionKind kind) {}
TEST_FUNCTION_KIND

bool FunctionKindIsStrictFunctionWithoutPrototype(FunctionKind kind) {}
TEST_FUNCTION_KIND

#undef TEST_FUNCTION_KIND

TEST_F(ObjectTest, ConstructorInstanceTypes) {}

TEST_F(ObjectTest, AddDataPropertyNameCollision) {}

TEST_F(ObjectTest, AddDataPropertyNameCollisionDeprecatedMap) {}

}  // namespace internal
}  // namespace v8