![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>#include "v8.h"#include "factory.h"#include "global-handles.h"#include "unique.h"#include "cctest.h"
Go to the source code of this file.
Macros | |
| #define | MAKE_HANDLES_AND_DISALLOW_ALLOCATION |
| #define | MAKE_UNIQUES_A_B_C |
| #define | MAKE_UNIQUES_A_B_C_D_E_F_G |
Functions | |
| template<class T , class U > | |
| void | CheckHashCodeEqual (Unique< T > a, Unique< U > b) |
| template<class T , class U > | |
| void | CheckHashCodeNotEqual (Unique< T > a, Unique< U > b) |
| TEST (UniqueCreate) | |
| TEST (UniqueSubsume) | |
| TEST (UniqueSet_Add) | |
| TEST (UniqueSet_Remove) | |
| TEST (UniqueSet_Contains) | |
| TEST (UniqueSet_At) | |
| TEST (UniqueSet_Equals) | |
| TEST (UniqueSet_IsSubset1) | |
| TEST (UniqueSet_IsSubset2) | |
| TEST (UniqueSet_IsSubsetExhaustive) | |
| TEST (UniqueSet_Intersect1) | |
| TEST (UniqueSet_IntersectExhaustive) | |
| TEST (UniqueSet_Union1) | |
| TEST (UniqueSet_UnionExhaustive) | |
| #define MAKE_HANDLES_AND_DISALLOW_ALLOCATION |
Definition at line 39 of file test-unique.cc.
Referenced by TEST().
| #define MAKE_UNIQUES_A_B_C |
Definition at line 54 of file test-unique.cc.
Referenced by TEST().
| #define MAKE_UNIQUES_A_B_C_D_E_F_G |
Definition at line 59 of file test-unique.cc.
Referenced by TEST().
| void CheckHashCodeEqual | ( | Unique< T > | a, |
| Unique< U > | b | ||
| ) |
Definition at line 69 of file test-unique.cc.
References CHECK_EQ, and CHECK_NE.
Referenced by TEST().
| void CheckHashCodeNotEqual | ( | Unique< T > | a, |
| Unique< U > | b | ||
| ) |
| TEST | ( | UniqueCreate | ) |
Definition at line 88 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CHECK_NE, CheckHashCodeEqual(), CheckHashCodeNotEqual(), CcTest::InitializeVM(), and MAKE_HANDLES_AND_DISALLOW_ALLOCATION.
| TEST | ( | UniqueSubsume | ) |
Definition at line 120 of file test-unique.cc.
References v8::internal::A, CHECK, CHECK_EQ, CheckHashCodeEqual(), CcTest::InitializeVM(), and MAKE_HANDLES_AND_DISALLOW_ALLOCATION.
| TEST | ( | UniqueSet_Add | ) |
Definition at line 141 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_Remove | ) |
Definition at line 168 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_Contains | ) |
Definition at line 208 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_At | ) |
Definition at line 239 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_Equals | ) |
Definition at line 276 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_IsSubset1 | ) |
Definition at line 314 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_IsSubset2 | ) |
Definition at line 349 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, v8::internal::D, v8::internal::F, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C_D_E_F_G.
| TEST | ( | UniqueSet_IsSubsetExhaustive | ) |
Definition at line 390 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, v8::internal::D, v8::internal::F, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C_D_E_F_G.
| TEST | ( | UniqueSet_Intersect1 | ) |
Definition at line 415 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_IntersectExhaustive | ) |
Definition at line 454 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, v8::internal::D, v8::internal::F, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C_D_E_F_G.
| TEST | ( | UniqueSet_Union1 | ) |
Definition at line 483 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, CHECK_EQ, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C.
| TEST | ( | UniqueSet_UnionExhaustive | ) |
Definition at line 522 of file test-unique.cc.
References v8::internal::A, v8::internal::B, CHECK, v8::internal::D, v8::internal::F, CcTest::InitializeVM(), MAKE_HANDLES_AND_DISALLOW_ALLOCATION, and MAKE_UNIQUES_A_B_C_D_E_F_G.