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 27 matching lines...) Expand all Loading... |
38 #include "jsregexp.h" | 38 #include "jsregexp.h" |
39 #include "regexp-macro-assembler.h" | 39 #include "regexp-macro-assembler.h" |
40 #include "regexp-macro-assembler-irregexp.h" | 40 #include "regexp-macro-assembler-irregexp.h" |
41 #ifdef V8_INTERPRETED_REGEXP | 41 #ifdef V8_INTERPRETED_REGEXP |
42 #include "interpreter-irregexp.h" | 42 #include "interpreter-irregexp.h" |
43 #else // V8_INTERPRETED_REGEXP | 43 #else // V8_INTERPRETED_REGEXP |
44 #ifdef V8_TARGET_ARCH_ARM | 44 #ifdef V8_TARGET_ARCH_ARM |
45 #include "arm/macro-assembler-arm.h" | 45 #include "arm/macro-assembler-arm.h" |
46 #include "arm/regexp-macro-assembler-arm.h" | 46 #include "arm/regexp-macro-assembler-arm.h" |
47 #endif | 47 #endif |
| 48 #ifdef V8_TARGET_ARCH_MIPS |
| 49 #include "mips/macro-assembler-mips.h" |
| 50 #include "mips/regexp-macro-assembler-mips.h" |
| 51 #endif |
48 #ifdef V8_TARGET_ARCH_X64 | 52 #ifdef V8_TARGET_ARCH_X64 |
49 #include "x64/macro-assembler-x64.h" | 53 #include "x64/macro-assembler-x64.h" |
50 #include "x64/regexp-macro-assembler-x64.h" | 54 #include "x64/regexp-macro-assembler-x64.h" |
51 #endif | 55 #endif |
52 #ifdef V8_TARGET_ARCH_IA32 | 56 #ifdef V8_TARGET_ARCH_IA32 |
53 #include "ia32/macro-assembler-ia32.h" | 57 #include "ia32/macro-assembler-ia32.h" |
54 #include "ia32/regexp-macro-assembler-ia32.h" | 58 #include "ia32/regexp-macro-assembler-ia32.h" |
55 #endif | 59 #endif |
56 #endif // V8_INTERPRETED_REGEXP | 60 #endif // V8_INTERPRETED_REGEXP |
57 | 61 |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 | 667 |
664 #ifndef V8_INTERPRETED_REGEXP | 668 #ifndef V8_INTERPRETED_REGEXP |
665 | 669 |
666 #if V8_TARGET_ARCH_IA32 | 670 #if V8_TARGET_ARCH_IA32 |
667 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 671 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
668 #elif V8_TARGET_ARCH_X64 | 672 #elif V8_TARGET_ARCH_X64 |
669 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 673 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
670 #elif V8_TARGET_ARCH_ARM | 674 #elif V8_TARGET_ARCH_ARM |
671 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 675 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
672 #elif V8_TARGET_ARCH_MIPS | 676 #elif V8_TARGET_ARCH_MIPS |
673 typedef RegExpMacroAssembler ArchRegExpMacroAssembler; | 677 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
674 #endif | 678 #endif |
675 | 679 |
676 class ContextInitializer { | 680 class ContextInitializer { |
677 public: | 681 public: |
678 ContextInitializer() | 682 ContextInitializer() |
679 : env_(), scope_(), zone_(DELETE_ON_EXIT) { | 683 : env_(), scope_(), zone_(DELETE_ON_EXIT) { |
680 env_ = v8::Context::New(); | 684 env_ = v8::Context::New(); |
681 env_->Enter(); | 685 env_->Enter(); |
682 } | 686 } |
683 ~ContextInitializer() { | 687 ~ContextInitializer() { |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 bool in_second = CharacterInSet(&l2, i); | 1800 bool in_second = CharacterInSet(&l2, i); |
1797 CHECK((in_first || in_second) == CharacterInSet(&all, i)); | 1801 CHECK((in_first || in_second) == CharacterInSet(&all, i)); |
1798 } | 1802 } |
1799 } | 1803 } |
1800 | 1804 |
1801 | 1805 |
1802 TEST(Graph) { | 1806 TEST(Graph) { |
1803 V8::Initialize(NULL); | 1807 V8::Initialize(NULL); |
1804 Execute("\\b\\w+\\b", false, true, true); | 1808 Execute("\\b\\w+\\b", false, true, true); |
1805 } | 1809 } |
OLD | NEW |