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 26 matching lines...) Expand all Loading... |
37 #include "parser.h" | 37 #include "parser.h" |
38 #include "regexp-macro-assembler.h" | 38 #include "regexp-macro-assembler.h" |
39 #include "regexp-macro-assembler-irregexp.h" | 39 #include "regexp-macro-assembler-irregexp.h" |
40 #include "string-stream.h" | 40 #include "string-stream.h" |
41 #include "zone-inl.h" | 41 #include "zone-inl.h" |
42 #ifdef V8_INTERPRETED_REGEXP | 42 #ifdef V8_INTERPRETED_REGEXP |
43 #include "interpreter-irregexp.h" | 43 #include "interpreter-irregexp.h" |
44 #else // V8_INTERPRETED_REGEXP | 44 #else // V8_INTERPRETED_REGEXP |
45 #include "macro-assembler.h" | 45 #include "macro-assembler.h" |
46 #include "code.h" | 46 #include "code.h" |
47 #ifdef V8_TARGET_ARCH_ARM | 47 #if V8_TARGET_ARCH_ARM |
48 #include "arm/assembler-arm.h" | 48 #include "arm/assembler-arm.h" |
49 #include "arm/macro-assembler-arm.h" | 49 #include "arm/macro-assembler-arm.h" |
50 #include "arm/regexp-macro-assembler-arm.h" | 50 #include "arm/regexp-macro-assembler-arm.h" |
51 #endif | 51 #endif |
52 #ifdef V8_TARGET_ARCH_MIPS | 52 #if V8_TARGET_ARCH_MIPS |
53 #include "mips/assembler-mips.h" | 53 #include "mips/assembler-mips.h" |
54 #include "mips/macro-assembler-mips.h" | 54 #include "mips/macro-assembler-mips.h" |
55 #include "mips/regexp-macro-assembler-mips.h" | 55 #include "mips/regexp-macro-assembler-mips.h" |
56 #endif | 56 #endif |
57 #ifdef V8_TARGET_ARCH_X64 | 57 #if V8_TARGET_ARCH_X64 |
58 #include "x64/assembler-x64.h" | 58 #include "x64/assembler-x64.h" |
59 #include "x64/macro-assembler-x64.h" | 59 #include "x64/macro-assembler-x64.h" |
60 #include "x64/regexp-macro-assembler-x64.h" | 60 #include "x64/regexp-macro-assembler-x64.h" |
61 #endif | 61 #endif |
62 #ifdef V8_TARGET_ARCH_IA32 | 62 #if V8_TARGET_ARCH_IA32 |
63 #include "ia32/assembler-ia32.h" | 63 #include "ia32/assembler-ia32.h" |
64 #include "ia32/macro-assembler-ia32.h" | 64 #include "ia32/macro-assembler-ia32.h" |
65 #include "ia32/regexp-macro-assembler-ia32.h" | 65 #include "ia32/regexp-macro-assembler-ia32.h" |
66 #endif | 66 #endif |
67 #endif // V8_INTERPRETED_REGEXP | 67 #endif // V8_INTERPRETED_REGEXP |
68 | 68 |
69 using namespace v8::internal; | 69 using namespace v8::internal; |
70 | 70 |
71 | 71 |
72 static bool CheckParse(const char* input) { | 72 static bool CheckParse(const char* input) { |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 ZoneList<CharacterRange> first_only(4, &zone); | 1806 ZoneList<CharacterRange> first_only(4, &zone); |
1807 ZoneList<CharacterRange> second_only(4, &zone); | 1807 ZoneList<CharacterRange> second_only(4, &zone); |
1808 ZoneList<CharacterRange> both(4, &zone); | 1808 ZoneList<CharacterRange> both(4, &zone); |
1809 } | 1809 } |
1810 | 1810 |
1811 | 1811 |
1812 TEST(Graph) { | 1812 TEST(Graph) { |
1813 V8::Initialize(NULL); | 1813 V8::Initialize(NULL); |
1814 Execute("\\b\\w+\\b", false, true, true); | 1814 Execute("\\b\\w+\\b", false, true, true); |
1815 } | 1815 } |
OLD | NEW |