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 // TODO(dcarney): remove | |
32 #define V8_ALLOW_ACCESS_TO_PERSISTENT_IMPLICIT | |
33 #define V8_ALLOW_ACCESS_TO_PERSISTENT_ARROW | |
34 | |
35 #include "v8.h" | 31 #include "v8.h" |
36 | 32 |
37 #include "ast.h" | 33 #include "ast.h" |
38 #include "char-predicates-inl.h" | 34 #include "char-predicates-inl.h" |
39 #include "cctest.h" | 35 #include "cctest.h" |
40 #include "jsregexp.h" | 36 #include "jsregexp.h" |
41 #include "parser.h" | 37 #include "parser.h" |
42 #include "regexp-macro-assembler.h" | 38 #include "regexp-macro-assembler.h" |
43 #include "regexp-macro-assembler-irregexp.h" | 39 #include "regexp-macro-assembler-irregexp.h" |
44 #include "string-stream.h" | 40 #include "string-stream.h" |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone()); | 1799 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone()); |
1804 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone()); | 1800 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone()); |
1805 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone()); | 1801 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone()); |
1806 } | 1802 } |
1807 | 1803 |
1808 | 1804 |
1809 TEST(Graph) { | 1805 TEST(Graph) { |
1810 V8::Initialize(NULL); | 1806 V8::Initialize(NULL); |
1811 Execute("\\b\\w+\\b", false, true, true); | 1807 Execute("\\b\\w+\\b", false, true, true); |
1812 } | 1808 } |
OLD | NEW |