| Index: test/cctest/test-regexp.cc
|
| diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
|
| index fa3c6eacab98230fa4b84d0a8dfe2eaadbcff1e8..6588c68b7d9771654b14445f464485a6680e86e1 100644
|
| --- a/test/cctest/test-regexp.cc
|
| +++ b/test/cctest/test-regexp.cc
|
| @@ -65,7 +65,7 @@ using namespace v8::internal;
|
| static bool CheckParse(const char* input) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| FlatStringReader reader(Isolate::Current(), CStrVector(input));
|
| RegExpCompileData result;
|
| return v8::internal::RegExpParser::ParseRegExp(&reader, false, &result);
|
| @@ -75,7 +75,7 @@ static bool CheckParse(const char* input) {
|
| static SmartPointer<const char> Parse(const char* input) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| FlatStringReader reader(Isolate::Current(), CStrVector(input));
|
| RegExpCompileData result;
|
| CHECK(v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| @@ -89,7 +89,7 @@ static bool CheckSimple(const char* input) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| unibrow::Utf8InputBuffer<> buffer(input, StrLength(input));
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| FlatStringReader reader(Isolate::Current(), CStrVector(input));
|
| RegExpCompileData result;
|
| CHECK(v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| @@ -107,7 +107,7 @@ static MinMaxPair CheckMinMaxMatch(const char* input) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| unibrow::Utf8InputBuffer<> buffer(input, StrLength(input));
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| FlatStringReader reader(Isolate::Current(), CStrVector(input));
|
| RegExpCompileData result;
|
| CHECK(v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| @@ -378,7 +378,7 @@ static void ExpectError(const char* input,
|
| const char* expected) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| FlatStringReader reader(Isolate::Current(), CStrVector(input));
|
| RegExpCompileData result;
|
| CHECK(!v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| @@ -460,7 +460,7 @@ static bool NotWord(uc16 c) {
|
|
|
|
|
| static void TestCharacterClassEscapes(uc16 c, bool (pred)(uc16 c)) {
|
| - ZoneScope scope(DELETE_ON_EXIT);
|
| + ZoneScope scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange>* ranges = new ZoneList<CharacterRange>(2);
|
| CharacterRange::AddClassEscape(c, ranges);
|
| for (unsigned i = 0; i < (1 << 16); i++) {
|
| @@ -506,7 +506,7 @@ static void Execute(const char* input,
|
| bool is_ascii,
|
| bool dot_output = false) {
|
| v8::HandleScope scope;
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| RegExpNode* node = Compile(input, multiline, is_ascii);
|
| USE(node);
|
| #ifdef DEBUG
|
| @@ -547,7 +547,7 @@ static unsigned PseudoRandom(int i, int j) {
|
| TEST(SplayTreeSimple) {
|
| v8::internal::V8::Initialize(NULL);
|
| static const unsigned kLimit = 1000;
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneSplayTree<TestConfig> tree;
|
| bool seen[kLimit];
|
| for (unsigned i = 0; i < kLimit; i++) seen[i] = false;
|
| @@ -615,7 +615,7 @@ TEST(DispatchTableConstruction) {
|
| }
|
| }
|
| // Enter test data into dispatch table.
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| DispatchTable table;
|
| for (int i = 0; i < kRangeCount; i++) {
|
| uc16* range = ranges[i];
|
| @@ -682,7 +682,7 @@ typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler;
|
| class ContextInitializer {
|
| public:
|
| ContextInitializer()
|
| - : env_(), scope_(), zone_(DELETE_ON_EXIT) {
|
| + : env_(), scope_(), zone_(Isolate::Current(), DELETE_ON_EXIT) {
|
| env_ = v8::Context::New();
|
| env_->Enter();
|
| }
|
| @@ -1377,7 +1377,7 @@ TEST(AddInverseToTable) {
|
| static const int kLimit = 1000;
|
| static const int kRangeCount = 16;
|
| for (int t = 0; t < 10; t++) {
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange>* ranges =
|
| new ZoneList<CharacterRange>(kRangeCount);
|
| for (int i = 0; i < kRangeCount; i++) {
|
| @@ -1398,7 +1398,7 @@ TEST(AddInverseToTable) {
|
| CHECK_EQ(is_on, set->Get(0) == false);
|
| }
|
| }
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange>* ranges =
|
| new ZoneList<CharacterRange>(1);
|
| ranges->Add(CharacterRange(0xFFF0, 0xFFFE));
|
| @@ -1511,7 +1511,7 @@ TEST(UncanonicalizeEquivalence) {
|
|
|
| static void TestRangeCaseIndependence(CharacterRange input,
|
| Vector<CharacterRange> expected) {
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| int count = expected.length();
|
| ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(count);
|
| input.AddCaseEquivalents(list, false);
|
| @@ -1575,7 +1575,7 @@ static bool InClass(uc16 c, ZoneList<CharacterRange>* ranges) {
|
|
|
| TEST(CharClassDifference) {
|
| v8::internal::V8::Initialize(NULL);
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange>* base = new ZoneList<CharacterRange>(1);
|
| base->Add(CharacterRange::Everything());
|
| Vector<const uc16> overlay = CharacterRange::GetWordBounds();
|
| @@ -1602,7 +1602,7 @@ TEST(CharClassDifference) {
|
|
|
| TEST(CanonicalizeCharacterSets) {
|
| v8::internal::V8::Initialize(NULL);
|
| - ZoneScope scope(DELETE_ON_EXIT);
|
| + ZoneScope scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(4);
|
| CharacterSet set(list);
|
|
|
| @@ -1673,7 +1673,7 @@ static bool CharacterInSet(ZoneList<CharacterRange>* set, uc16 value) {
|
|
|
| TEST(CharacterRangeMerge) {
|
| v8::internal::V8::Initialize(NULL);
|
| - ZoneScope zone_scope(DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| ZoneList<CharacterRange> l1(4);
|
| ZoneList<CharacterRange> l2(4);
|
| // Create all combinations of intersections of ranges, both singletons and
|
|
|