#include <stdlib.h>
#include "include/v8-external.h"
#include "include/v8-initialization.h"
#include "include/v8-template.h"
#include "src/init/v8.h"
#include "test/unittests/heap/heap-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace {
enum Expectations { … };
using DeclsTest = TestWithIsolate;
class DeclarationContext { … };
DeclarationContext::DeclarationContext()
: … { … }
void DeclarationContext::InitializeIfNeeded() { … }
void DeclarationContext::Check(const char* source, int get, int set, int query,
Expectations expectations,
v8::Local<Value> value) { … }
v8::Intercepted DeclarationContext::HandleGet(
Local<Name> key, const v8::PropertyCallbackInfo<v8::Value>& info) { … }
v8::Intercepted DeclarationContext::HandleSet(
Local<Name> key, Local<Value> value,
const v8::PropertyCallbackInfo<void>& info) { … }
v8::Intercepted DeclarationContext::HandleQuery(
Local<Name> key, const v8::PropertyCallbackInfo<v8::Integer>& info) { … }
DeclarationContext* DeclarationContext::GetInstance(Local<Value> data) { … }
v8::Local<Value> DeclarationContext::Get(Local<Name> key) { … }
Maybe<bool> DeclarationContext::Set(Local<Name> key, Local<Value> value) { … }
v8::Local<Integer> DeclarationContext::Query(Local<Name> key) { … }
}
TEST_F(DeclsTest, Unknown) { … }
class AbsentPropertyContext : public DeclarationContext { … };
TEST_F(DeclsTest, Absent) { … }
class AppearingPropertyContext : public DeclarationContext { … };
TEST_F(DeclsTest, Appearing) { … }
class ExistsInPrototypeContext : public DeclarationContext { … };
TEST_F(DeclsTest, ExistsInPrototype) { … }
class AbsentInPrototypeContext : public DeclarationContext { … };
TEST_F(DeclsTest, AbsentInPrototype) { … }
class SimpleContext { … };
TEST_F(DeclsTest, CrossScriptReferences) { … }
TEST_F(DeclsTest, CrossScriptReferences_Simple) { … }
TEST_F(DeclsTest, CrossScriptReferences_Simple2) { … }
TEST_F(DeclsTest, CrossScriptReferencesHarmony) { … }
TEST_F(DeclsTest, CrossScriptReferencesHarmonyRegress) { … }
TEST_F(DeclsTest, GlobalLexicalOSR) { … }
TEST_F(DeclsTest, CrossScriptConflicts) { … }
TEST_F(DeclsTest, CrossScriptDynamicLookup) { … }
TEST_F(DeclsTest, CrossScriptGlobal) { … }
TEST_F(DeclsTest, CrossScriptStaticLookupUndeclared) { … }
TEST_F(DeclsTest, CrossScriptLoadICs) { … }
TEST_F(DeclsTest, CrossScriptStoreICs) { … }
TEST_F(DeclsTest, CrossScriptAssignmentToConst) { … }
TEST_F(DeclsTest, Regress425510) { … }
TEST_F(DeclsTest, Regress3941) { … }
TEST_F(DeclsTest, Regress3941_Reads) { … }
TEST_F(DeclsTest, TestUsing) { … }
TEST_F(DeclsTest, TestAwaitUsing) { … }
}