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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #ifdef V8_INTERPRETED_REGEXP | 42 #ifdef V8_INTERPRETED_REGEXP |
43 #include "interpreter-irregexp.h" | 43 #include "interpreter-irregexp.h" |
44 #else // V8_INTERPRETED_REGEXP | 44 #else // V8_INTERPRETED_REGEXP |
45 #include "macro-assembler.h" | 45 #include "macro-assembler.h" |
46 #include "code.h" | 46 #include "code.h" |
47 #if V8_TARGET_ARCH_ARM | 47 #if V8_TARGET_ARCH_ARM |
48 #include "arm/assembler-arm.h" | 48 #include "arm/assembler-arm.h" |
49 #include "arm/macro-assembler-arm.h" | 49 #include "arm/macro-assembler-arm.h" |
50 #include "arm/regexp-macro-assembler-arm.h" | 50 #include "arm/regexp-macro-assembler-arm.h" |
51 #endif | 51 #endif |
52 #if V8_TARGET_ARCH_A64 | 52 #if V8_TARGET_ARCH_ARM64 |
53 #include "a64/assembler-a64.h" | 53 #include "arm64/assembler-arm64.h" |
54 #include "a64/macro-assembler-a64.h" | 54 #include "arm64/macro-assembler-arm64.h" |
55 #include "a64/regexp-macro-assembler-a64.h" | 55 #include "arm64/regexp-macro-assembler-arm64.h" |
56 #endif | 56 #endif |
57 #if V8_TARGET_ARCH_MIPS | 57 #if V8_TARGET_ARCH_MIPS |
58 #include "mips/assembler-mips.h" | 58 #include "mips/assembler-mips.h" |
59 #include "mips/macro-assembler-mips.h" | 59 #include "mips/macro-assembler-mips.h" |
60 #include "mips/regexp-macro-assembler-mips.h" | 60 #include "mips/regexp-macro-assembler-mips.h" |
61 #endif | 61 #endif |
62 #if V8_TARGET_ARCH_X64 | 62 #if V8_TARGET_ARCH_X64 |
63 #include "x64/assembler-x64.h" | 63 #include "x64/assembler-x64.h" |
64 #include "x64/macro-assembler-x64.h" | 64 #include "x64/macro-assembler-x64.h" |
65 #include "x64/regexp-macro-assembler-x64.h" | 65 #include "x64/regexp-macro-assembler-x64.h" |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 | 687 |
688 | 688 |
689 #ifndef V8_INTERPRETED_REGEXP | 689 #ifndef V8_INTERPRETED_REGEXP |
690 | 690 |
691 #if V8_TARGET_ARCH_IA32 | 691 #if V8_TARGET_ARCH_IA32 |
692 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 692 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
693 #elif V8_TARGET_ARCH_X64 | 693 #elif V8_TARGET_ARCH_X64 |
694 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 694 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
695 #elif V8_TARGET_ARCH_ARM | 695 #elif V8_TARGET_ARCH_ARM |
696 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 696 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
697 #elif V8_TARGET_ARCH_A64 | 697 #elif V8_TARGET_ARCH_ARM64 |
698 typedef RegExpMacroAssemblerA64 ArchRegExpMacroAssembler; | 698 typedef RegExpMacroAssemblerARM64 ArchRegExpMacroAssembler; |
699 #elif V8_TARGET_ARCH_MIPS | 699 #elif V8_TARGET_ARCH_MIPS |
700 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; | 700 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
701 #endif | 701 #endif |
702 | 702 |
703 class ContextInitializer { | 703 class ContextInitializer { |
704 public: | 704 public: |
705 ContextInitializer() | 705 ContextInitializer() |
706 : scope_(CcTest::isolate()), | 706 : scope_(CcTest::isolate()), |
707 env_(v8::Context::New(CcTest::isolate())) { | 707 env_(v8::Context::New(CcTest::isolate())) { |
708 env_->Enter(); | 708 env_->Enter(); |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 ZoneList<CharacterRange> first_only(4, &zone); | 1803 ZoneList<CharacterRange> first_only(4, &zone); |
1804 ZoneList<CharacterRange> second_only(4, &zone); | 1804 ZoneList<CharacterRange> second_only(4, &zone); |
1805 ZoneList<CharacterRange> both(4, &zone); | 1805 ZoneList<CharacterRange> both(4, &zone); |
1806 } | 1806 } |
1807 | 1807 |
1808 | 1808 |
1809 TEST(Graph) { | 1809 TEST(Graph) { |
1810 V8::Initialize(NULL); | 1810 V8::Initialize(NULL); |
1811 Execute("\\b\\w+\\b", false, true, true); | 1811 Execute("\\b\\w+\\b", false, true, true); |
1812 } | 1812 } |
OLD | NEW |