| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "src/token.h" | 58 #include "src/token.h" |
| 59 | 59 |
| 60 #if V8_TARGET_ARCH_IA32 | 60 #if V8_TARGET_ARCH_IA32 |
| 61 #include "src/ia32/assembler-ia32-inl.h" // NOLINT | 61 #include "src/ia32/assembler-ia32-inl.h" // NOLINT |
| 62 #elif V8_TARGET_ARCH_X64 | 62 #elif V8_TARGET_ARCH_X64 |
| 63 #include "src/x64/assembler-x64-inl.h" // NOLINT | 63 #include "src/x64/assembler-x64-inl.h" // NOLINT |
| 64 #elif V8_TARGET_ARCH_ARM64 | 64 #elif V8_TARGET_ARCH_ARM64 |
| 65 #include "src/arm64/assembler-arm64-inl.h" // NOLINT | 65 #include "src/arm64/assembler-arm64-inl.h" // NOLINT |
| 66 #elif V8_TARGET_ARCH_ARM | 66 #elif V8_TARGET_ARCH_ARM |
| 67 #include "src/arm/assembler-arm-inl.h" // NOLINT | 67 #include "src/arm/assembler-arm-inl.h" // NOLINT |
| 68 #elif V8_TARGET_ARCH_PPC |
| 69 #include "src/ppc/assembler-ppc-inl.h" // NOLINT |
| 68 #elif V8_TARGET_ARCH_MIPS | 70 #elif V8_TARGET_ARCH_MIPS |
| 69 #include "src/mips/assembler-mips-inl.h" // NOLINT | 71 #include "src/mips/assembler-mips-inl.h" // NOLINT |
| 70 #elif V8_TARGET_ARCH_MIPS64 | 72 #elif V8_TARGET_ARCH_MIPS64 |
| 71 #include "src/mips64/assembler-mips64-inl.h" // NOLINT | 73 #include "src/mips64/assembler-mips64-inl.h" // NOLINT |
| 72 #elif V8_TARGET_ARCH_X87 | 74 #elif V8_TARGET_ARCH_X87 |
| 73 #include "src/x87/assembler-x87-inl.h" // NOLINT | 75 #include "src/x87/assembler-x87-inl.h" // NOLINT |
| 74 #else | 76 #else |
| 75 #error "Unknown architecture." | 77 #error "Unknown architecture." |
| 76 #endif | 78 #endif |
| 77 | 79 |
| 78 // Include native regexp-macro-assembler. | 80 // Include native regexp-macro-assembler. |
| 79 #ifndef V8_INTERPRETED_REGEXP | 81 #ifndef V8_INTERPRETED_REGEXP |
| 80 #if V8_TARGET_ARCH_IA32 | 82 #if V8_TARGET_ARCH_IA32 |
| 81 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT | 83 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT |
| 82 #elif V8_TARGET_ARCH_X64 | 84 #elif V8_TARGET_ARCH_X64 |
| 83 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT | 85 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT |
| 84 #elif V8_TARGET_ARCH_ARM64 | 86 #elif V8_TARGET_ARCH_ARM64 |
| 85 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT | 87 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT |
| 86 #elif V8_TARGET_ARCH_ARM | 88 #elif V8_TARGET_ARCH_ARM |
| 87 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT | 89 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT |
| 90 #elif V8_TARGET_ARCH_PPC |
| 91 #include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT |
| 88 #elif V8_TARGET_ARCH_MIPS | 92 #elif V8_TARGET_ARCH_MIPS |
| 89 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT | 93 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT |
| 90 #elif V8_TARGET_ARCH_MIPS64 | 94 #elif V8_TARGET_ARCH_MIPS64 |
| 91 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT | 95 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT |
| 92 #elif V8_TARGET_ARCH_X87 | 96 #elif V8_TARGET_ARCH_X87 |
| 93 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT | 97 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT |
| 94 #else // Unknown architecture. | 98 #else // Unknown architecture. |
| 95 #error "Unknown architecture." | 99 #error "Unknown architecture." |
| 96 #endif // Target architecture. | 100 #endif // Target architecture. |
| 97 #endif // V8_INTERPRETED_REGEXP | 101 #endif // V8_INTERPRETED_REGEXP |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 Isolate* isolate) { | 1294 Isolate* isolate) { |
| 1291 Address function; | 1295 Address function; |
| 1292 #if V8_TARGET_ARCH_X64 | 1296 #if V8_TARGET_ARCH_X64 |
| 1293 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 1297 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
| 1294 #elif V8_TARGET_ARCH_IA32 | 1298 #elif V8_TARGET_ARCH_IA32 |
| 1295 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 1299 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
| 1296 #elif V8_TARGET_ARCH_ARM64 | 1300 #elif V8_TARGET_ARCH_ARM64 |
| 1297 function = FUNCTION_ADDR(RegExpMacroAssemblerARM64::CheckStackGuardState); | 1301 function = FUNCTION_ADDR(RegExpMacroAssemblerARM64::CheckStackGuardState); |
| 1298 #elif V8_TARGET_ARCH_ARM | 1302 #elif V8_TARGET_ARCH_ARM |
| 1299 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 1303 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
| 1304 #elif V8_TARGET_ARCH_PPC |
| 1305 function = FUNCTION_ADDR(RegExpMacroAssemblerPPC::CheckStackGuardState); |
| 1300 #elif V8_TARGET_ARCH_MIPS | 1306 #elif V8_TARGET_ARCH_MIPS |
| 1301 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1307 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
| 1302 #elif V8_TARGET_ARCH_MIPS64 | 1308 #elif V8_TARGET_ARCH_MIPS64 |
| 1303 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1309 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
| 1304 #elif V8_TARGET_ARCH_X87 | 1310 #elif V8_TARGET_ARCH_X87 |
| 1305 function = FUNCTION_ADDR(RegExpMacroAssemblerX87::CheckStackGuardState); | 1311 function = FUNCTION_ADDR(RegExpMacroAssemblerX87::CheckStackGuardState); |
| 1306 #else | 1312 #else |
| 1307 UNREACHABLE(); | 1313 UNREACHABLE(); |
| 1308 #endif | 1314 #endif |
| 1309 return ExternalReference(Redirect(isolate, function)); | 1315 return ExternalReference(Redirect(isolate, function)); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1596 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1591 state_.written_position = state_.current_position; | 1597 state_.written_position = state_.current_position; |
| 1592 written = true; | 1598 written = true; |
| 1593 } | 1599 } |
| 1594 | 1600 |
| 1595 // Return whether something was written. | 1601 // Return whether something was written. |
| 1596 return written; | 1602 return written; |
| 1597 } | 1603 } |
| 1598 | 1604 |
| 1599 } } // namespace v8::internal | 1605 } } // namespace v8::internal |
| OLD | NEW |