| Index: test/cctest/test-regexp.cc
|
| diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
|
| index 801e4b33b4493dccf730bb709f5c55d2be601308..b22b3484dd78c18e46da01b49d930235f1a47839 100644
|
| --- a/test/cctest/test-regexp.cc
|
| +++ b/test/cctest/test-regexp.cc
|
| @@ -85,7 +85,6 @@ using namespace v8::internal;
|
|
|
|
|
| static bool CheckParse(const char* input) {
|
| - V8::Initialize(NULL);
|
| v8::HandleScope scope(CcTest::isolate());
|
| Zone zone(CcTest::i_isolate());
|
| FlatStringReader reader(CcTest::i_isolate(), CStrVector(input));
|
| @@ -96,7 +95,6 @@ static bool CheckParse(const char* input) {
|
|
|
|
|
| static void CheckParseEq(const char* input, const char* expected) {
|
| - V8::Initialize(NULL);
|
| v8::HandleScope scope(CcTest::isolate());
|
| Zone zone(CcTest::i_isolate());
|
| FlatStringReader reader(CcTest::i_isolate(), CStrVector(input));
|
| @@ -112,7 +110,6 @@ static void CheckParseEq(const char* input, const char* expected) {
|
|
|
|
|
| static bool CheckSimple(const char* input) {
|
| - V8::Initialize(NULL);
|
| v8::HandleScope scope(CcTest::isolate());
|
| Zone zone(CcTest::i_isolate());
|
| FlatStringReader reader(CcTest::i_isolate(), CStrVector(input));
|
| @@ -131,7 +128,6 @@ struct MinMaxPair {
|
|
|
|
|
| static MinMaxPair CheckMinMaxMatch(const char* input) {
|
| - V8::Initialize(NULL);
|
| v8::HandleScope scope(CcTest::isolate());
|
| Zone zone(CcTest::i_isolate());
|
| FlatStringReader reader(CcTest::i_isolate(), CStrVector(input));
|
| @@ -156,8 +152,6 @@ static MinMaxPair CheckMinMaxMatch(const char* input) {
|
| }
|
|
|
| TEST(Parser) {
|
| - V8::Initialize(NULL);
|
| -
|
| CHECK_PARSE_ERROR("?");
|
|
|
| CheckParseEq("abc", "'abc'");
|
| @@ -407,7 +401,6 @@ TEST(ParserRegression) {
|
|
|
| static void ExpectError(const char* input,
|
| const char* expected) {
|
| - V8::Initialize(NULL);
|
| v8::HandleScope scope(CcTest::isolate());
|
| Zone zone(CcTest::i_isolate());
|
| FlatStringReader reader(CcTest::i_isolate(), CStrVector(input));
|
| @@ -494,7 +487,6 @@ static void TestCharacterClassEscapes(uc16 c, bool (pred)(uc16 c)) {
|
|
|
|
|
| TEST(CharacterClassEscapes) {
|
| - v8::internal::V8::Initialize(NULL);
|
| TestCharacterClassEscapes('.', IsRegExpNewline);
|
| TestCharacterClassEscapes('d', IsDigit);
|
| TestCharacterClassEscapes('D', NotDigit);
|
| @@ -507,7 +499,6 @@ TEST(CharacterClassEscapes) {
|
|
|
| static RegExpNode* Compile(const char* input, bool multiline, bool is_one_byte,
|
| Zone* zone) {
|
| - V8::Initialize(NULL);
|
| Isolate* isolate = CcTest::i_isolate();
|
| FlatStringReader reader(isolate, CStrVector(input));
|
| RegExpCompileData compile_data;
|
| @@ -564,7 +555,6 @@ static unsigned PseudoRandom(int i, int j) {
|
|
|
|
|
| TEST(SplayTreeSimple) {
|
| - v8::internal::V8::Initialize(NULL);
|
| static const unsigned kLimit = 1000;
|
| Zone zone(CcTest::i_isolate());
|
| ZoneSplayTree<TestConfig> tree(&zone);
|
| @@ -617,7 +607,6 @@ TEST(SplayTreeSimple) {
|
|
|
|
|
| TEST(DispatchTableConstruction) {
|
| - v8::internal::V8::Initialize(NULL);
|
| // Initialize test data.
|
| static const int kLimit = 1000;
|
| static const int kRangeCount = 8;
|
| @@ -1362,7 +1351,6 @@ TEST(MacroAssemblerNativeLotsOfRegisters) {
|
| #else // V8_INTERPRETED_REGEXP
|
|
|
| TEST(MacroAssembler) {
|
| - V8::Initialize(NULL);
|
| byte codes[1024];
|
| Zone zone(CcTest::i_isolate());
|
| RegExpMacroAssemblerIrregexp m(Vector<byte>(codes, 1024), &zone);
|
| @@ -1428,7 +1416,6 @@ TEST(MacroAssembler) {
|
|
|
|
|
| TEST(AddInverseToTable) {
|
| - v8::internal::V8::Initialize(NULL);
|
| static const int kLimit = 1000;
|
| static const int kRangeCount = 16;
|
| for (int t = 0; t < 10; t++) {
|
| @@ -1588,7 +1575,6 @@ static void TestSimpleRangeCaseIndependence(CharacterRange input,
|
|
|
|
|
| TEST(CharacterRangeCaseIndependence) {
|
| - v8::internal::V8::Initialize(NULL);
|
| TestSimpleRangeCaseIndependence(CharacterRange::Singleton('a'),
|
| CharacterRange::Singleton('A'));
|
| TestSimpleRangeCaseIndependence(CharacterRange::Singleton('z'),
|
| @@ -1630,7 +1616,6 @@ static bool InClass(uc16 c, ZoneList<CharacterRange>* ranges) {
|
|
|
|
|
| TEST(CharClassDifference) {
|
| - v8::internal::V8::Initialize(NULL);
|
| Zone zone(CcTest::i_isolate());
|
| ZoneList<CharacterRange>* base =
|
| new(&zone) ZoneList<CharacterRange>(1, &zone);
|
| @@ -1658,7 +1643,6 @@ TEST(CharClassDifference) {
|
|
|
|
|
| TEST(CanonicalizeCharacterSets) {
|
| - v8::internal::V8::Initialize(NULL);
|
| Zone zone(CcTest::i_isolate());
|
| ZoneList<CharacterRange>* list =
|
| new(&zone) ZoneList<CharacterRange>(4, &zone);
|
| @@ -1720,7 +1704,6 @@ TEST(CanonicalizeCharacterSets) {
|
|
|
|
|
| TEST(CharacterRangeMerge) {
|
| - v8::internal::V8::Initialize(NULL);
|
| Zone zone(CcTest::i_isolate());
|
| ZoneList<CharacterRange> l1(4, &zone);
|
| ZoneList<CharacterRange> l2(4, &zone);
|
| @@ -1808,6 +1791,5 @@ TEST(CharacterRangeMerge) {
|
|
|
|
|
| TEST(Graph) {
|
| - V8::Initialize(NULL);
|
| Execute("\\b\\w+\\b", false, true, true);
|
| }
|
|
|