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 10 matching lines...) Expand all Loading... |
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 | 28 |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 | 30 |
31 #include "v8.h" | 31 #include "src/v8.h" |
32 | 32 |
33 #include "ast.h" | 33 #include "src/ast.h" |
34 #include "char-predicates-inl.h" | 34 #include "src/char-predicates-inl.h" |
35 #include "cctest.h" | 35 #include "test/cctest/cctest.h" |
36 #include "jsregexp.h" | 36 #include "src/jsregexp.h" |
37 #include "parser.h" | 37 #include "src/parser.h" |
38 #include "regexp-macro-assembler.h" | 38 #include "src/regexp-macro-assembler.h" |
39 #include "regexp-macro-assembler-irregexp.h" | 39 #include "src/regexp-macro-assembler-irregexp.h" |
40 #include "string-stream.h" | 40 #include "src/string-stream.h" |
41 #include "zone-inl.h" | 41 #include "src/zone-inl.h" |
42 #ifdef V8_INTERPRETED_REGEXP | 42 #ifdef V8_INTERPRETED_REGEXP |
43 #include "interpreter-irregexp.h" | 43 #include "src/interpreter-irregexp.h" |
44 #else // V8_INTERPRETED_REGEXP | 44 #else // V8_INTERPRETED_REGEXP |
45 #include "macro-assembler.h" | 45 #include "src/macro-assembler.h" |
46 #include "code.h" | 46 #include "src/code.h" |
47 #if V8_TARGET_ARCH_ARM | 47 #if V8_TARGET_ARCH_ARM |
48 #include "arm/assembler-arm.h" | 48 #include "src/arm/assembler-arm.h" |
49 #include "arm/macro-assembler-arm.h" | 49 #include "src/arm/macro-assembler-arm.h" |
50 #include "arm/regexp-macro-assembler-arm.h" | 50 #include "src/arm/regexp-macro-assembler-arm.h" |
51 #endif | 51 #endif |
52 #if V8_TARGET_ARCH_ARM64 | 52 #if V8_TARGET_ARCH_ARM64 |
53 #include "arm64/assembler-arm64.h" | 53 #include "src/arm64/assembler-arm64.h" |
54 #include "arm64/macro-assembler-arm64.h" | 54 #include "src/arm64/macro-assembler-arm64.h" |
55 #include "arm64/regexp-macro-assembler-arm64.h" | 55 #include "src/arm64/regexp-macro-assembler-arm64.h" |
56 #endif | 56 #endif |
57 #if V8_TARGET_ARCH_MIPS | 57 #if V8_TARGET_ARCH_MIPS |
58 #include "mips/assembler-mips.h" | 58 #include "src/mips/assembler-mips.h" |
59 #include "mips/macro-assembler-mips.h" | 59 #include "src/mips/macro-assembler-mips.h" |
60 #include "mips/regexp-macro-assembler-mips.h" | 60 #include "src/mips/regexp-macro-assembler-mips.h" |
61 #endif | 61 #endif |
62 #if V8_TARGET_ARCH_X64 | 62 #if V8_TARGET_ARCH_X64 |
63 #include "x64/assembler-x64.h" | 63 #include "src/x64/assembler-x64.h" |
64 #include "x64/macro-assembler-x64.h" | 64 #include "src/x64/macro-assembler-x64.h" |
65 #include "x64/regexp-macro-assembler-x64.h" | 65 #include "src/x64/regexp-macro-assembler-x64.h" |
66 #endif | 66 #endif |
67 #if V8_TARGET_ARCH_IA32 | 67 #if V8_TARGET_ARCH_IA32 |
68 #include "ia32/assembler-ia32.h" | 68 #include "src/ia32/assembler-ia32.h" |
69 #include "ia32/macro-assembler-ia32.h" | 69 #include "src/ia32/macro-assembler-ia32.h" |
70 #include "ia32/regexp-macro-assembler-ia32.h" | 70 #include "src/ia32/regexp-macro-assembler-ia32.h" |
71 #endif | 71 #endif |
72 #if V8_TARGET_ARCH_X87 | 72 #if V8_TARGET_ARCH_X87 |
73 #include "x87/assembler-x87.h" | 73 #include "src/x87/assembler-x87.h" |
74 #include "x87/macro-assembler-x87.h" | 74 #include "src/x87/macro-assembler-x87.h" |
75 #include "x87/regexp-macro-assembler-x87.h" | 75 #include "src/x87/regexp-macro-assembler-x87.h" |
76 #endif | 76 #endif |
77 #endif // V8_INTERPRETED_REGEXP | 77 #endif // V8_INTERPRETED_REGEXP |
78 | 78 |
79 using namespace v8::internal; | 79 using namespace v8::internal; |
80 | 80 |
81 | 81 |
82 static bool CheckParse(const char* input) { | 82 static bool CheckParse(const char* input) { |
83 V8::Initialize(NULL); | 83 V8::Initialize(NULL); |
84 v8::HandleScope scope(CcTest::isolate()); | 84 v8::HandleScope scope(CcTest::isolate()); |
85 Zone zone(CcTest::i_isolate()); | 85 Zone zone(CcTest::i_isolate()); |
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1811 ZoneList<CharacterRange> first_only(4, &zone); | 1811 ZoneList<CharacterRange> first_only(4, &zone); |
1812 ZoneList<CharacterRange> second_only(4, &zone); | 1812 ZoneList<CharacterRange> second_only(4, &zone); |
1813 ZoneList<CharacterRange> both(4, &zone); | 1813 ZoneList<CharacterRange> both(4, &zone); |
1814 } | 1814 } |
1815 | 1815 |
1816 | 1816 |
1817 TEST(Graph) { | 1817 TEST(Graph) { |
1818 V8::Initialize(NULL); | 1818 V8::Initialize(NULL); |
1819 Execute("\\b\\w+\\b", false, true, true); | 1819 Execute("\\b\\w+\\b", false, true, true); |
1820 } | 1820 } |
OLD | NEW |