13 using namespace v8::internal;
21 const int kNumSymbols = 30;
24 for (
int i = 0; i < kNumSymbols; ++i) {
26 CHECK(symbols[i]->IsName());
27 CHECK(symbols[i]->IsSymbol());
28 CHECK(symbols[i]->HasHashCode());
30 symbols[i]->ShortPrint();
44 for (
int i = 0; i < kNumSymbols; ++i) {
45 CHECK(symbols[i]->SameValue(*symbols[i]));
46 for (
int j = i + 1; j < kNumSymbols; ++j) {
47 CHECK(!symbols[i]->SameValue(*symbols[j]));
void PrintF(const char *format,...)
void CollectAllGarbage(int flags, const char *gc_reason=NULL, const GCCallbackFlags gc_callback_flags=kNoGCCallbackFlags)
enable upcoming ES6 features enable harmony block scoping enable harmony symbols(a.k.a.private names)") DEFINE_bool(harmony_proxies
static const int kNoGCFlags
static i::Isolate * i_isolate()
bool CollectGarbage(AllocationSpace space, const char *gc_reason=NULL, const GCCallbackFlags gc_callback_flags=kNoGCCallbackFlags)
static void InitializeVM()
Handle< Symbol > NewSymbol()