| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 | 664 |
| 661 #ifndef V8_INTERPRETED_REGEXP | 665 #ifndef V8_INTERPRETED_REGEXP |
| 662 | 666 |
| 663 #if V8_TARGET_ARCH_IA32 | 667 #if V8_TARGET_ARCH_IA32 |
| 664 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 668 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
| 665 #elif V8_TARGET_ARCH_X64 | 669 #elif V8_TARGET_ARCH_X64 |
| 666 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 670 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
| 667 #elif V8_TARGET_ARCH_ARM | 671 #elif V8_TARGET_ARCH_ARM |
| 668 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 672 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
| 669 #elif V8_TARGET_ARCH_MIPS | 673 #elif V8_TARGET_ARCH_MIPS |
| 670 typedef RegExpMacroAssembler ArchRegExpMacroAssembler; | 674 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
| 671 #endif | 675 #endif |
| 672 | 676 |
| 673 class ContextInitializer { | 677 class ContextInitializer { |
| 674 public: | 678 public: |
| 675 ContextInitializer() | 679 ContextInitializer() |
| 676 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() { | 680 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() { |
| 677 env_ = v8::Context::New(); | 681 env_ = v8::Context::New(); |
| 678 env_->Enter(); | 682 env_->Enter(); |
| 679 } | 683 } |
| 680 ~ContextInitializer() { | 684 ~ContextInitializer() { |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 bool in_second = CharacterInSet(&l2, i); | 1792 bool in_second = CharacterInSet(&l2, i); |
| 1789 CHECK((in_first || in_second) == CharacterInSet(&all, i)); | 1793 CHECK((in_first || in_second) == CharacterInSet(&all, i)); |
| 1790 } | 1794 } |
| 1791 } | 1795 } |
| 1792 | 1796 |
| 1793 | 1797 |
| 1794 TEST(Graph) { | 1798 TEST(Graph) { |
| 1795 V8::Initialize(NULL); | 1799 V8::Initialize(NULL); |
| 1796 Execute("\\b\\w+\\b", false, true, true); | 1800 Execute("\\b\\w+\\b", false, true, true); |
| 1797 } | 1801 } |
| OLD | NEW |