OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "string-stream.h" | 34 #include "string-stream.h" |
35 #include "cctest.h" | 35 #include "cctest.h" |
36 #include "zone-inl.h" | 36 #include "zone-inl.h" |
37 #include "parser.h" | 37 #include "parser.h" |
38 #include "ast.h" | 38 #include "ast.h" |
39 #include "jsregexp-inl.h" | 39 #include "jsregexp-inl.h" |
40 #include "regexp-macro-assembler.h" | 40 #include "regexp-macro-assembler.h" |
41 #include "regexp-macro-assembler-irregexp.h" | 41 #include "regexp-macro-assembler-irregexp.h" |
42 #ifdef ARM | 42 #ifdef ARM |
43 #include "regexp-macro-assembler-arm.h" | 43 #include "arm/regexp-macro-assembler-arm.h" |
44 #else // IA32 | 44 #else // IA32 |
45 #include "macro-assembler-ia32.h" | 45 #include "ia32/macro-assembler-ia32.h" |
46 #include "regexp-macro-assembler-ia32.h" | 46 #include "ia32/regexp-macro-assembler-ia32.h" |
47 #endif | 47 #endif |
48 #include "interpreter-irregexp.h" | 48 #include "interpreter-irregexp.h" |
49 | 49 |
50 | 50 |
51 using namespace v8::internal; | 51 using namespace v8::internal; |
52 | 52 |
53 | 53 |
54 static SmartPointer<const char> Parse(const char* input) { | 54 static SmartPointer<const char> Parse(const char* input) { |
55 V8::Initialize(NULL); | 55 V8::Initialize(NULL); |
56 v8::HandleScope scope; | 56 v8::HandleScope scope; |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 CHECK(!InClass(i, excluded)); | 1527 CHECK(!InClass(i, excluded)); |
1528 } | 1528 } |
1529 } | 1529 } |
1530 } | 1530 } |
1531 | 1531 |
1532 | 1532 |
1533 TEST(Graph) { | 1533 TEST(Graph) { |
1534 V8::Initialize(NULL); | 1534 V8::Initialize(NULL); |
1535 Execute("(?:(?:x(.))?\1)+$", false, true, true); | 1535 Execute("(?:(?:x(.))?\1)+$", false, true, true); |
1536 } | 1536 } |
OLD | NEW |