Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: test/cctest/test-regexp.cc

Issue 875833002: Fix regexp=interpreted build wrt zone related changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/regexp-macro-assembler-irregexp.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 CHECK_EQ(0, captures[0]); 1365 CHECK_EQ(0, captures[0]);
1366 CHECK_EQ(42, captures[1]); 1366 CHECK_EQ(42, captures[1]);
1367 1367
1368 isolate->clear_pending_exception(); 1368 isolate->clear_pending_exception();
1369 } 1369 }
1370 1370
1371 #else // V8_INTERPRETED_REGEXP 1371 #else // V8_INTERPRETED_REGEXP
1372 1372
1373 TEST(MacroAssembler) { 1373 TEST(MacroAssembler) {
1374 byte codes[1024]; 1374 byte codes[1024];
1375 Zone zone(CcTest::i_isolate()); 1375 Zone zone;
1376 RegExpMacroAssemblerIrregexp m(Vector<byte>(codes, 1024), &zone); 1376 RegExpMacroAssemblerIrregexp m(CcTest::i_isolate(), Vector<byte>(codes, 1024),
1377 &zone);
1377 // ^f(o)o. 1378 // ^f(o)o.
1378 Label start, fail, backtrack; 1379 Label start, fail, backtrack;
1379 1380
1380 m.SetRegister(4, 42); 1381 m.SetRegister(4, 42);
1381 m.PushRegister(4, RegExpMacroAssembler::kNoStackLimitCheck); 1382 m.PushRegister(4, RegExpMacroAssembler::kNoStackLimitCheck);
1382 m.AdvanceRegister(4, 42); 1383 m.AdvanceRegister(4, 42);
1383 m.GoTo(&start); 1384 m.GoTo(&start);
1384 m.Fail(); 1385 m.Fail();
1385 m.Bind(&start); 1386 m.Bind(&start);
1386 m.PushBacktrack(&fail); 1387 m.PushBacktrack(&fail);
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 1809
1809 ZoneList<CharacterRange> first_only(4, &zone); 1810 ZoneList<CharacterRange> first_only(4, &zone);
1810 ZoneList<CharacterRange> second_only(4, &zone); 1811 ZoneList<CharacterRange> second_only(4, &zone);
1811 ZoneList<CharacterRange> both(4, &zone); 1812 ZoneList<CharacterRange> both(4, &zone);
1812 } 1813 }
1813 1814
1814 1815
1815 TEST(Graph) { 1816 TEST(Graph) {
1816 Execute("\\b\\w+\\b", false, true, true); 1817 Execute("\\b\\w+\\b", false, true, true);
1817 } 1818 }
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-irregexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698