OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "src/token.h" | 56 #include "src/token.h" |
57 | 57 |
58 #if V8_TARGET_ARCH_IA32 | 58 #if V8_TARGET_ARCH_IA32 |
59 #include "src/ia32/assembler-ia32-inl.h" // NOLINT | 59 #include "src/ia32/assembler-ia32-inl.h" // NOLINT |
60 #elif V8_TARGET_ARCH_X64 | 60 #elif V8_TARGET_ARCH_X64 |
61 #include "src/x64/assembler-x64-inl.h" // NOLINT | 61 #include "src/x64/assembler-x64-inl.h" // NOLINT |
62 #elif V8_TARGET_ARCH_ARM64 | 62 #elif V8_TARGET_ARCH_ARM64 |
63 #include "src/arm64/assembler-arm64-inl.h" // NOLINT | 63 #include "src/arm64/assembler-arm64-inl.h" // NOLINT |
64 #elif V8_TARGET_ARCH_ARM | 64 #elif V8_TARGET_ARCH_ARM |
65 #include "src/arm/assembler-arm-inl.h" // NOLINT | 65 #include "src/arm/assembler-arm-inl.h" // NOLINT |
| 66 #elif V8_TARGET_ARCH_PPC |
| 67 #include "src/ppc/assembler-ppc-inl.h" // NOLINT |
66 #elif V8_TARGET_ARCH_MIPS | 68 #elif V8_TARGET_ARCH_MIPS |
67 #include "src/mips/assembler-mips-inl.h" // NOLINT | 69 #include "src/mips/assembler-mips-inl.h" // NOLINT |
68 #elif V8_TARGET_ARCH_MIPS64 | 70 #elif V8_TARGET_ARCH_MIPS64 |
69 #include "src/mips64/assembler-mips64-inl.h" // NOLINT | 71 #include "src/mips64/assembler-mips64-inl.h" // NOLINT |
70 #elif V8_TARGET_ARCH_X87 | 72 #elif V8_TARGET_ARCH_X87 |
71 #include "src/x87/assembler-x87-inl.h" // NOLINT | 73 #include "src/x87/assembler-x87-inl.h" // NOLINT |
72 #else | 74 #else |
73 #error "Unknown architecture." | 75 #error "Unknown architecture." |
74 #endif | 76 #endif |
75 | 77 |
76 // Include native regexp-macro-assembler. | 78 // Include native regexp-macro-assembler. |
77 #ifndef V8_INTERPRETED_REGEXP | 79 #ifndef V8_INTERPRETED_REGEXP |
78 #if V8_TARGET_ARCH_IA32 | 80 #if V8_TARGET_ARCH_IA32 |
79 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT | 81 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT |
80 #elif V8_TARGET_ARCH_X64 | 82 #elif V8_TARGET_ARCH_X64 |
81 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT | 83 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT |
82 #elif V8_TARGET_ARCH_ARM64 | 84 #elif V8_TARGET_ARCH_ARM64 |
83 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT | 85 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT |
84 #elif V8_TARGET_ARCH_ARM | 86 #elif V8_TARGET_ARCH_ARM |
85 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT | 87 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT |
| 88 #elif V8_TARGET_ARCH_PPC |
| 89 #include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT |
86 #elif V8_TARGET_ARCH_MIPS | 90 #elif V8_TARGET_ARCH_MIPS |
87 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT | 91 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT |
88 #elif V8_TARGET_ARCH_MIPS64 | 92 #elif V8_TARGET_ARCH_MIPS64 |
89 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT | 93 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT |
90 #elif V8_TARGET_ARCH_X87 | 94 #elif V8_TARGET_ARCH_X87 |
91 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT | 95 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT |
92 #else // Unknown architecture. | 96 #else // Unknown architecture. |
93 #error "Unknown architecture." | 97 #error "Unknown architecture." |
94 #endif // Target architecture. | 98 #endif // Target architecture. |
95 #endif // V8_INTERPRETED_REGEXP | 99 #endif // V8_INTERPRETED_REGEXP |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 Isolate* isolate) { | 1288 Isolate* isolate) { |
1285 Address function; | 1289 Address function; |
1286 #if V8_TARGET_ARCH_X64 | 1290 #if V8_TARGET_ARCH_X64 |
1287 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 1291 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
1288 #elif V8_TARGET_ARCH_IA32 | 1292 #elif V8_TARGET_ARCH_IA32 |
1289 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 1293 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
1290 #elif V8_TARGET_ARCH_ARM64 | 1294 #elif V8_TARGET_ARCH_ARM64 |
1291 function = FUNCTION_ADDR(RegExpMacroAssemblerARM64::CheckStackGuardState); | 1295 function = FUNCTION_ADDR(RegExpMacroAssemblerARM64::CheckStackGuardState); |
1292 #elif V8_TARGET_ARCH_ARM | 1296 #elif V8_TARGET_ARCH_ARM |
1293 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 1297 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
| 1298 #elif V8_TARGET_ARCH_PPC |
| 1299 function = FUNCTION_ADDR(RegExpMacroAssemblerPPC::CheckStackGuardState); |
1294 #elif V8_TARGET_ARCH_MIPS | 1300 #elif V8_TARGET_ARCH_MIPS |
1295 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1301 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
1296 #elif V8_TARGET_ARCH_MIPS64 | 1302 #elif V8_TARGET_ARCH_MIPS64 |
1297 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1303 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
1298 #elif V8_TARGET_ARCH_X87 | 1304 #elif V8_TARGET_ARCH_X87 |
1299 function = FUNCTION_ADDR(RegExpMacroAssemblerX87::CheckStackGuardState); | 1305 function = FUNCTION_ADDR(RegExpMacroAssemblerX87::CheckStackGuardState); |
1300 #else | 1306 #else |
1301 UNREACHABLE(); | 1307 UNREACHABLE(); |
1302 #endif | 1308 #endif |
1303 return ExternalReference(Redirect(isolate, function)); | 1309 return ExternalReference(Redirect(isolate, function)); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 r2 = r2 - ad; | 1601 r2 = r2 - ad; |
1596 } | 1602 } |
1597 delta = ad - r2; | 1603 delta = ad - r2; |
1598 } while (q1 < delta || (q1 == delta && r1 == 0)); | 1604 } while (q1 < delta || (q1 == delta && r1 == 0)); |
1599 int32_t mul = static_cast<int32_t>(q2 + 1); | 1605 int32_t mul = static_cast<int32_t>(q2 + 1); |
1600 multiplier_ = (d < 0) ? -mul : mul; | 1606 multiplier_ = (d < 0) ? -mul : mul; |
1601 shift_ = p - 32; | 1607 shift_ = p - 32; |
1602 } | 1608 } |
1603 | 1609 |
1604 } } // namespace v8::internal | 1610 } } // namespace v8::internal |
OLD | NEW |