v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include "v8.h"
#include "api.h"
#include "factory.h"
#include "objects.h"
#include "cctest.h"
#include "zone-inl.h"
Go to the source code of this file.
Data Structures | |
class | Resource |
class | AsciiResource |
class | AsciiVectorResource |
Functions | |
TEST (Traverse) | |
TEST (DeepAscii) | |
TEST (Utf8Conversion) | |
TEST (ExternalShortStringAdd) | |
TEST (CachedHashOverflow) | |
TEST (SliceFromCons) | |
TEST (SliceFromExternal) | |
TEST (TrivialSlice) | |
TEST (SliceFromSlice) | |
TEST (AsciiArrayJoin) | |
TEST (RobustSubStringStub) | |
TEST (RegExpOverflow) | |
TEST (StringReplaceAtomTwoByteResult) | |
TEST (IsAscii) | |
Variables | |
unsigned int | seed = 123 |
TEST | ( | Traverse | ) |
Definition at line 233 of file test-strings.cc.
References v8::internal::DELETE_ON_EXIT, and v8::internal::FlattenString().
TEST | ( | DeepAscii | ) |
Definition at line 281 of file test-strings.cc.
References v8::internal::CStrVector(), FACTORY, v8::internal::FlattenString(), and foo.
TEST | ( | Utf8Conversion | ) |
Definition at line 306 of file test-strings.cc.
References CHECK_EQ, String::New(), v8::internal::StrLength(), String::Utf8Length(), and String::WriteUtf8().
TEST | ( | ExternalShortStringAdd | ) |
Definition at line 352 of file test-strings.cc.
References CHECK_EQ, CHECK_GT, v8::internal::DELETE_ON_EXIT, ConsString::kMinLength, Integer::New(), Object::New(), Zone::NewArray(), String::NewExternal(), and Object::Set().
TEST | ( | CachedHashOverflow | ) |
Definition at line 440 of file test-strings.cc.
References Smi::cast(), CHECK_EQ, Script::Compile(), v8::internal::DELETE_ON_EXIT, FACTORY, Smi::FromInt(), Value::IsNumber(), Value::IsUndefined(), String::New(), v8::internal::NULL, and Value::ToInt32().
TEST | ( | SliceFromCons | ) |
Definition at line 488 of file test-strings.cc.
References ConsString::cast(), SlicedString::cast(), CHECK, CHECK_EQ, v8::internal::CStrVector(), FACTORY, ConsString::first(), and SlicedString::parent().
TEST | ( | SliceFromExternal | ) |
Definition at line 520 of file test-strings.cc.
References SlicedString::cast(), CHECK, CHECK_EQ, FACTORY, and SlicedString::parent().
TEST | ( | TrivialSlice | ) |
Definition at line 537 of file test-strings.cc.
References String::Cast(), CHECK, check(), CHECK_EQ, FACTORY, and Value::IsString().
TEST | ( | SliceFromSlice | ) |
Definition at line 566 of file test-strings.cc.
References String::Cast(), SlicedString::cast(), CHECK, CHECK_EQ, Value::IsString(), and SlicedString::parent().
TEST | ( | AsciiArrayJoin | ) |
Definition at line 595 of file test-strings.cc.
References CHECK, Script::Compile(), Context::HasOutOfMemoryException(), V8::IgnoreOutOfMemoryException(), Handle< T >::IsEmpty(), String::New(), Script::Run(), ResourceConstraints::set_max_old_space_size(), ResourceConstraints::set_max_young_space_size(), and v8::SetResourceConstraints().
TEST | ( | RobustSubStringStub | ) |
Definition at line 634 of file test-strings.cc.
References String::Cast(), and CHECK_EQ.
TEST | ( | RegExpOverflow | ) |
Definition at line 680 of file test-strings.cc.
References CHECK, Context::HasOutOfMemoryException(), V8::IgnoreOutOfMemoryException(), and Handle< T >::IsEmpty().
TEST | ( | StringReplaceAtomTwoByteResult | ) |
Definition at line 697 of file test-strings.cc.
References String::Cast(), CHECK, and Value::IsString().
TEST | ( | IsAscii | ) |
Definition at line 714 of file test-strings.cc.
References CHECK, String::IsAscii(), and v8::internal::NULL.
unsigned int seed = 123 |
Definition at line 18 of file test-strings.cc.
Referenced by v8::internal::ComputeIntegerHash(), Heap::HashSeed(), V8::Random(), StubCache::Set(), OS::SetUp(), and TwoCharHashTableKey::TwoCharHashTableKey().