OLD | NEW |
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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 bool multiline, | 532 bool multiline, |
533 bool is_ascii, | 533 bool is_ascii, |
534 bool dot_output = false) { | 534 bool dot_output = false) { |
535 v8::HandleScope scope(CcTest::isolate()); | 535 v8::HandleScope scope(CcTest::isolate()); |
536 Zone zone(CcTest::i_isolate()); | 536 Zone zone(CcTest::i_isolate()); |
537 RegExpNode* node = Compile(input, multiline, is_ascii, &zone); | 537 RegExpNode* node = Compile(input, multiline, is_ascii, &zone); |
538 USE(node); | 538 USE(node); |
539 #ifdef DEBUG | 539 #ifdef DEBUG |
540 if (dot_output) { | 540 if (dot_output) { |
541 RegExpEngine::DotPrint(input, node, false); | 541 RegExpEngine::DotPrint(input, node, false); |
542 exit(0); | |
543 } | 542 } |
544 #endif // DEBUG | 543 #endif // DEBUG |
545 } | 544 } |
546 | 545 |
547 | 546 |
548 class TestConfig { | 547 class TestConfig { |
549 public: | 548 public: |
550 typedef int Key; | 549 typedef int Key; |
551 typedef int Value; | 550 typedef int Value; |
552 static const int kNoKey; | 551 static const int kNoKey; |
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 ZoneList<CharacterRange> first_only(4, &zone); | 1808 ZoneList<CharacterRange> first_only(4, &zone); |
1810 ZoneList<CharacterRange> second_only(4, &zone); | 1809 ZoneList<CharacterRange> second_only(4, &zone); |
1811 ZoneList<CharacterRange> both(4, &zone); | 1810 ZoneList<CharacterRange> both(4, &zone); |
1812 } | 1811 } |
1813 | 1812 |
1814 | 1813 |
1815 TEST(Graph) { | 1814 TEST(Graph) { |
1816 V8::Initialize(NULL); | 1815 V8::Initialize(NULL); |
1817 Execute("\\b\\w+\\b", false, true, true); | 1816 Execute("\\b\\w+\\b", false, true, true); |
1818 } | 1817 } |
OLD | NEW |