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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 | 646 |
647 | 647 |
648 #ifdef V8_NATIVE_REGEXP | 648 #ifdef V8_NATIVE_REGEXP |
649 | 649 |
650 #if V8_TARGET_ARCH_IA32 | 650 #if V8_TARGET_ARCH_IA32 |
651 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 651 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
652 #elif V8_TARGET_ARCH_X64 | 652 #elif V8_TARGET_ARCH_X64 |
653 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 653 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
654 #elif V8_TARGET_ARCH_ARM | 654 #elif V8_TARGET_ARCH_ARM |
655 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 655 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
| 656 #elif V8_TARGET_ARCH_MIPS |
| 657 typedef RegExpMacroAssembler ArchRegExpMacroAssembler; |
656 #endif | 658 #endif |
657 | 659 |
658 class ContextInitializer { | 660 class ContextInitializer { |
659 public: | 661 public: |
660 ContextInitializer() | 662 ContextInitializer() |
661 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() { | 663 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() { |
662 env_ = v8::Context::New(); | 664 env_ = v8::Context::New(); |
663 env_->Enter(); | 665 env_->Enter(); |
664 } | 666 } |
665 ~ContextInitializer() { | 667 ~ContextInitializer() { |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1790 bool in_second = CharacterInSet(&l2, i); | 1792 bool in_second = CharacterInSet(&l2, i); |
1791 CHECK((in_first || in_second) == CharacterInSet(&all, i)); | 1793 CHECK((in_first || in_second) == CharacterInSet(&all, i)); |
1792 } | 1794 } |
1793 } | 1795 } |
1794 | 1796 |
1795 | 1797 |
1796 TEST(Graph) { | 1798 TEST(Graph) { |
1797 V8::Initialize(NULL); | 1799 V8::Initialize(NULL); |
1798 Execute("\\b\\w+\\b", false, true, true); | 1800 Execute("\\b\\w+\\b", false, true, true); |
1799 } | 1801 } |
OLD | NEW |