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

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

Issue 1285163003: Move regexp implementation into its own folder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 5 years, 4 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/x87/regexp-macro-assembler-x87.cc ('k') | tools/gyp/v8.gyp » ('j') | 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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include <cstdlib> 28 #include <cstdlib>
29 #include <sstream> 29 #include <sstream>
30 30
31 #include "src/v8.h" 31 #include "src/v8.h"
32 32
33 #include "src/ast.h" 33 #include "src/ast.h"
34 #include "src/char-predicates-inl.h" 34 #include "src/char-predicates-inl.h"
35 #include "src/jsregexp.h"
36 #include "src/ostreams.h" 35 #include "src/ostreams.h"
37 #include "src/parser.h" 36 #include "src/parser.h"
38 #include "src/regexp-macro-assembler.h" 37 #include "src/regexp/jsregexp.h"
39 #include "src/regexp-macro-assembler-irregexp.h" 38 #include "src/regexp/regexp-macro-assembler.h"
39 #include "src/regexp/regexp-macro-assembler-irregexp.h"
40 #include "src/splay-tree-inl.h" 40 #include "src/splay-tree-inl.h"
41 #include "src/string-stream.h" 41 #include "src/string-stream.h"
42 #ifdef V8_INTERPRETED_REGEXP 42 #ifdef V8_INTERPRETED_REGEXP
43 #include "src/interpreter-irregexp.h" 43 #include "src/regexp/interpreter-irregexp.h"
44 #else // V8_INTERPRETED_REGEXP 44 #else // V8_INTERPRETED_REGEXP
45 #include "src/macro-assembler.h" 45 #include "src/macro-assembler.h"
46 #if V8_TARGET_ARCH_ARM 46 #if V8_TARGET_ARCH_ARM
47 #include "src/arm/assembler-arm.h" // NOLINT 47 #include "src/arm/assembler-arm.h" // NOLINT
48 #include "src/arm/macro-assembler-arm.h" 48 #include "src/arm/macro-assembler-arm.h"
49 #include "src/arm/regexp-macro-assembler-arm.h" 49 #include "src/regexp/arm/regexp-macro-assembler-arm.h"
50 #endif 50 #endif
51 #if V8_TARGET_ARCH_ARM64 51 #if V8_TARGET_ARCH_ARM64
52 #include "src/arm64/assembler-arm64.h" 52 #include "src/arm64/assembler-arm64.h"
53 #include "src/arm64/macro-assembler-arm64.h" 53 #include "src/arm64/macro-assembler-arm64.h"
54 #include "src/arm64/regexp-macro-assembler-arm64.h" 54 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h"
55 #endif 55 #endif
56 #if V8_TARGET_ARCH_PPC 56 #if V8_TARGET_ARCH_PPC
57 #include "src/ppc/assembler-ppc.h" 57 #include "src/ppc/assembler-ppc.h"
58 #include "src/ppc/macro-assembler-ppc.h" 58 #include "src/ppc/macro-assembler-ppc.h"
59 #include "src/ppc/regexp-macro-assembler-ppc.h" 59 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h"
60 #endif 60 #endif
61 #if V8_TARGET_ARCH_MIPS 61 #if V8_TARGET_ARCH_MIPS
62 #include "src/mips/assembler-mips.h" 62 #include "src/mips/assembler-mips.h"
63 #include "src/mips/macro-assembler-mips.h" 63 #include "src/mips/macro-assembler-mips.h"
64 #include "src/mips/regexp-macro-assembler-mips.h" 64 #include "src/regexp/mips/regexp-macro-assembler-mips.h"
65 #endif 65 #endif
66 #if V8_TARGET_ARCH_MIPS64 66 #if V8_TARGET_ARCH_MIPS64
67 #include "src/mips64/assembler-mips64.h" 67 #include "src/mips64/assembler-mips64.h"
68 #include "src/mips64/macro-assembler-mips64.h" 68 #include "src/mips64/macro-assembler-mips64.h"
69 #include "src/mips64/regexp-macro-assembler-mips64.h" 69 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h"
70 #endif 70 #endif
71 #if V8_TARGET_ARCH_X64 71 #if V8_TARGET_ARCH_X64
72 #include "src/regexp/x64/regexp-macro-assembler-x64.h"
72 #include "src/x64/assembler-x64.h" 73 #include "src/x64/assembler-x64.h"
73 #include "src/x64/macro-assembler-x64.h" 74 #include "src/x64/macro-assembler-x64.h"
74 #include "src/x64/regexp-macro-assembler-x64.h"
75 #endif 75 #endif
76 #if V8_TARGET_ARCH_IA32 76 #if V8_TARGET_ARCH_IA32
77 #include "src/ia32/assembler-ia32.h" 77 #include "src/ia32/assembler-ia32.h"
78 #include "src/ia32/macro-assembler-ia32.h" 78 #include "src/ia32/macro-assembler-ia32.h"
79 #include "src/ia32/regexp-macro-assembler-ia32.h" 79 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h"
80 #endif 80 #endif
81 #if V8_TARGET_ARCH_X87 81 #if V8_TARGET_ARCH_X87
82 #include "src/regexp/x87/regexp-macro-assembler-x87.h"
82 #include "src/x87/assembler-x87.h" 83 #include "src/x87/assembler-x87.h"
83 #include "src/x87/macro-assembler-x87.h" 84 #include "src/x87/macro-assembler-x87.h"
84 #include "src/x87/regexp-macro-assembler-x87.h"
85 #endif 85 #endif
86 #endif // V8_INTERPRETED_REGEXP 86 #endif // V8_INTERPRETED_REGEXP
87 #include "test/cctest/cctest.h" 87 #include "test/cctest/cctest.h"
88 88
89 using namespace v8::internal; 89 using namespace v8::internal;
90 90
91 91
92 static bool CheckParse(const char* input) { 92 static bool CheckParse(const char* input) {
93 v8::HandleScope scope(CcTest::isolate()); 93 v8::HandleScope scope(CcTest::isolate());
94 Zone zone; 94 Zone zone;
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 1809
1810 ZoneList<CharacterRange> first_only(4, &zone); 1810 ZoneList<CharacterRange> first_only(4, &zone);
1811 ZoneList<CharacterRange> second_only(4, &zone); 1811 ZoneList<CharacterRange> second_only(4, &zone);
1812 ZoneList<CharacterRange> both(4, &zone); 1812 ZoneList<CharacterRange> both(4, &zone);
1813 } 1813 }
1814 1814
1815 1815
1816 TEST(Graph) { 1816 TEST(Graph) {
1817 Execute("\\b\\w+\\b", false, true, true); 1817 Execute("\\b\\w+\\b", false, true, true);
1818 } 1818 }
OLDNEW
« no previous file with comments | « src/x87/regexp-macro-assembler-x87.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698