| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #if V8_TARGET_ARCH_ARM | 47 #if V8_TARGET_ARCH_ARM |
| 48 #include "src/arm/assembler-arm.h" // NOLINT | 48 #include "src/arm/assembler-arm.h" // NOLINT |
| 49 #include "src/arm/macro-assembler-arm.h" | 49 #include "src/arm/macro-assembler-arm.h" |
| 50 #include "src/regexp/arm/regexp-macro-assembler-arm.h" | 50 #include "src/regexp/arm/regexp-macro-assembler-arm.h" |
| 51 #endif | 51 #endif |
| 52 #if V8_TARGET_ARCH_ARM64 | 52 #if V8_TARGET_ARCH_ARM64 |
| 53 #include "src/arm64/assembler-arm64.h" | 53 #include "src/arm64/assembler-arm64.h" |
| 54 #include "src/arm64/macro-assembler-arm64.h" | 54 #include "src/arm64/macro-assembler-arm64.h" |
| 55 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h" | 55 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h" |
| 56 #endif | 56 #endif |
| 57 #if V8_TARGET_ARCH_S390 |
| 58 #include "src/regexp/s390/regexp-macro-assembler-s390.h" |
| 59 #include "src/s390/assembler-s390.h" |
| 60 #include "src/s390/macro-assembler-s390.h" |
| 61 #endif |
| 57 #if V8_TARGET_ARCH_PPC | 62 #if V8_TARGET_ARCH_PPC |
| 58 #include "src/ppc/assembler-ppc.h" | 63 #include "src/ppc/assembler-ppc.h" |
| 59 #include "src/ppc/macro-assembler-ppc.h" | 64 #include "src/ppc/macro-assembler-ppc.h" |
| 60 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" | 65 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" |
| 61 #endif | 66 #endif |
| 62 #if V8_TARGET_ARCH_MIPS | 67 #if V8_TARGET_ARCH_MIPS |
| 63 #include "src/mips/assembler-mips.h" | 68 #include "src/mips/assembler-mips.h" |
| 64 #include "src/mips/macro-assembler-mips.h" | 69 #include "src/mips/macro-assembler-mips.h" |
| 65 #include "src/regexp/mips/regexp-macro-assembler-mips.h" | 70 #include "src/regexp/mips/regexp-macro-assembler-mips.h" |
| 66 #endif | 71 #endif |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 #ifndef V8_INTERPRETED_REGEXP | 742 #ifndef V8_INTERPRETED_REGEXP |
| 738 | 743 |
| 739 #if V8_TARGET_ARCH_IA32 | 744 #if V8_TARGET_ARCH_IA32 |
| 740 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; | 745 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; |
| 741 #elif V8_TARGET_ARCH_X64 | 746 #elif V8_TARGET_ARCH_X64 |
| 742 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; | 747 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; |
| 743 #elif V8_TARGET_ARCH_ARM | 748 #elif V8_TARGET_ARCH_ARM |
| 744 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; | 749 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; |
| 745 #elif V8_TARGET_ARCH_ARM64 | 750 #elif V8_TARGET_ARCH_ARM64 |
| 746 typedef RegExpMacroAssemblerARM64 ArchRegExpMacroAssembler; | 751 typedef RegExpMacroAssemblerARM64 ArchRegExpMacroAssembler; |
| 752 #elif V8_TARGET_ARCH_S390 |
| 753 typedef RegExpMacroAssemblerS390 ArchRegExpMacroAssembler; |
| 747 #elif V8_TARGET_ARCH_PPC | 754 #elif V8_TARGET_ARCH_PPC |
| 748 typedef RegExpMacroAssemblerPPC ArchRegExpMacroAssembler; | 755 typedef RegExpMacroAssemblerPPC ArchRegExpMacroAssembler; |
| 749 #elif V8_TARGET_ARCH_MIPS | 756 #elif V8_TARGET_ARCH_MIPS |
| 750 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; | 757 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
| 751 #elif V8_TARGET_ARCH_MIPS64 | 758 #elif V8_TARGET_ARCH_MIPS64 |
| 752 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; | 759 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; |
| 753 #elif V8_TARGET_ARCH_X87 | 760 #elif V8_TARGET_ARCH_X87 |
| 754 typedef RegExpMacroAssemblerX87 ArchRegExpMacroAssembler; | 761 typedef RegExpMacroAssemblerX87 ArchRegExpMacroAssembler; |
| 755 #endif | 762 #endif |
| 756 | 763 |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 // .toString() throws on non-RegExps that aren't RegExp.prototype | 1967 // .toString() throws on non-RegExps that aren't RegExp.prototype |
| 1961 v8::Local<v8::Value> resultToStringError = CompileRun( | 1968 v8::Local<v8::Value> resultToStringError = CompileRun( |
| 1962 "var exception;" | 1969 "var exception;" |
| 1963 "try { RegExp.prototype.toString.call(null) }" | 1970 "try { RegExp.prototype.toString.call(null) }" |
| 1964 "catch (e) { exception = e; }" | 1971 "catch (e) { exception = e; }" |
| 1965 "exception"); | 1972 "exception"); |
| 1966 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeStickyGetter]); | 1973 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeStickyGetter]); |
| 1967 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeToString]); | 1974 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeToString]); |
| 1968 CHECK(resultToStringError->IsObject()); | 1975 CHECK(resultToStringError->IsObject()); |
| 1969 } | 1976 } |
| OLD | NEW |