| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" |
| 66 #endif | 66 #endif |
| 67 #if V8_TARGET_ARCH_IA32 | 67 #if V8_TARGET_ARCH_IA32 |
| 68 #include "ia32/assembler-ia32.h" | 68 #include "ia32/assembler-ia32.h" |
| 69 #include "ia32/macro-assembler-ia32.h" | 69 #include "ia32/macro-assembler-ia32.h" |
| 70 #include "ia32/regexp-macro-assembler-ia32.h" | 70 #include "ia32/regexp-macro-assembler-ia32.h" |
| 71 #endif | 71 #endif |
| 72 #if V8_TARGET_ARCH_X87 |
| 73 #include "x87/assembler-x87.h" |
| 74 #include "x87/macro-assembler-x87.h" |
| 75 #include "x87/regexp-macro-assembler-x87.h" |
| 76 #endif |
| 72 #endif // V8_INTERPRETED_REGEXP | 77 #endif // V8_INTERPRETED_REGEXP |
| 73 | 78 |
| 74 using namespace v8::internal; | 79 using namespace v8::internal; |
| 75 | 80 |
| 76 | 81 |
| 77 static bool CheckParse(const char* input) { | 82 static bool CheckParse(const char* input) { |
| 78 V8::Initialize(NULL); | 83 V8::Initialize(NULL); |
| 79 v8::HandleScope scope(CcTest::isolate()); | 84 v8::HandleScope scope(CcTest::isolate()); |
| 80 Zone zone(CcTest::i_isolate()); | 85 Zone zone(CcTest::i_isolate()); |
| 81 FlatStringReader reader(CcTest::i_isolate(), CStrVector(input)); | 86 FlatStringReader reader(CcTest::i_isolate(), CStrVector(input)); |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 #if V8_TARGET_ARCH_IA32 | 696 #if V8_TARGET_ARCH_IA32 |
| 692 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 697 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
| 693 #elif V8_TARGET_ARCH_X64 | 698 #elif V8_TARGET_ARCH_X64 |
| 694 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 699 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
| 695 #elif V8_TARGET_ARCH_ARM | 700 #elif V8_TARGET_ARCH_ARM |
| 696 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 701 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
| 697 #elif V8_TARGET_ARCH_ARM64 | 702 #elif V8_TARGET_ARCH_ARM64 |
| 698 typedef RegExpMacroAssemblerARM64 ArchRegExpMacroAssembler; | 703 typedef RegExpMacroAssemblerARM64 ArchRegExpMacroAssembler; |
| 699 #elif V8_TARGET_ARCH_MIPS | 704 #elif V8_TARGET_ARCH_MIPS |
| 700 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; | 705 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
| 706 #elif V8_TARGET_ARCH_X87 |
| 707 typedef RegExpMacroAssemblerX87 ArchRegExpMacroAssembler; |
| 701 #endif | 708 #endif |
| 702 | 709 |
| 703 class ContextInitializer { | 710 class ContextInitializer { |
| 704 public: | 711 public: |
| 705 ContextInitializer() | 712 ContextInitializer() |
| 706 : scope_(CcTest::isolate()), | 713 : scope_(CcTest::isolate()), |
| 707 env_(v8::Context::New(CcTest::isolate())) { | 714 env_(v8::Context::New(CcTest::isolate())) { |
| 708 env_->Enter(); | 715 env_->Enter(); |
| 709 } | 716 } |
| 710 ~ContextInitializer() { | 717 ~ContextInitializer() { |
| (...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 ZoneList<CharacterRange> first_only(4, &zone); | 1811 ZoneList<CharacterRange> first_only(4, &zone); |
| 1805 ZoneList<CharacterRange> second_only(4, &zone); | 1812 ZoneList<CharacterRange> second_only(4, &zone); |
| 1806 ZoneList<CharacterRange> both(4, &zone); | 1813 ZoneList<CharacterRange> both(4, &zone); |
| 1807 } | 1814 } |
| 1808 | 1815 |
| 1809 | 1816 |
| 1810 TEST(Graph) { | 1817 TEST(Graph) { |
| 1811 V8::Initialize(NULL); | 1818 V8::Initialize(NULL); |
| 1812 Execute("\\b\\w+\\b", false, true, true); | 1819 Execute("\\b\\w+\\b", false, true, true); |
| 1813 } | 1820 } |
| OLD | NEW |