| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ast.h" | 7 #include "src/ast.h" |
| 8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
| 9 #include "src/compilation-cache.h" | 9 #include "src/compilation-cache.h" |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #if V8_TARGET_ARCH_IA32 | 25 #if V8_TARGET_ARCH_IA32 |
| 26 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT | 26 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT |
| 27 #elif V8_TARGET_ARCH_X64 | 27 #elif V8_TARGET_ARCH_X64 |
| 28 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT | 28 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT |
| 29 #elif V8_TARGET_ARCH_ARM64 | 29 #elif V8_TARGET_ARCH_ARM64 |
| 30 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT | 30 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT |
| 31 #elif V8_TARGET_ARCH_ARM | 31 #elif V8_TARGET_ARCH_ARM |
| 32 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT | 32 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT |
| 33 #elif V8_TARGET_ARCH_MIPS | 33 #elif V8_TARGET_ARCH_MIPS |
| 34 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT | 34 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT |
| 35 #elif V8_TARGET_ARCH_MIPS64 |
| 36 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT |
| 35 #elif V8_TARGET_ARCH_X87 | 37 #elif V8_TARGET_ARCH_X87 |
| 36 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT | 38 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT |
| 37 #else | 39 #else |
| 38 #error Unsupported target architecture. | 40 #error Unsupported target architecture. |
| 39 #endif | 41 #endif |
| 40 #endif | 42 #endif |
| 41 | 43 |
| 42 #include "src/interpreter-irregexp.h" | 44 #include "src/interpreter-irregexp.h" |
| 43 | 45 |
| 44 | 46 |
| (...skipping 6017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6062 zone); | 6064 zone); |
| 6063 #elif V8_TARGET_ARCH_ARM | 6065 #elif V8_TARGET_ARCH_ARM |
| 6064 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, | 6066 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6065 zone); | 6067 zone); |
| 6066 #elif V8_TARGET_ARCH_ARM64 | 6068 #elif V8_TARGET_ARCH_ARM64 |
| 6067 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, | 6069 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6068 zone); | 6070 zone); |
| 6069 #elif V8_TARGET_ARCH_MIPS | 6071 #elif V8_TARGET_ARCH_MIPS |
| 6070 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, | 6072 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6071 zone); | 6073 zone); |
| 6074 #elif V8_TARGET_ARCH_MIPS64 |
| 6075 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6076 zone); |
| 6072 #elif V8_TARGET_ARCH_X87 | 6077 #elif V8_TARGET_ARCH_X87 |
| 6073 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, | 6078 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6074 zone); | 6079 zone); |
| 6075 #else | 6080 #else |
| 6076 #error "Unsupported architecture" | 6081 #error "Unsupported architecture" |
| 6077 #endif | 6082 #endif |
| 6078 | 6083 |
| 6079 #else // V8_INTERPRETED_REGEXP | 6084 #else // V8_INTERPRETED_REGEXP |
| 6080 // Interpreted regexp implementation. | 6085 // Interpreted regexp implementation. |
| 6081 EmbeddedVector<byte, 1024> codes; | 6086 EmbeddedVector<byte, 1024> codes; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6099 } | 6104 } |
| 6100 | 6105 |
| 6101 return compiler.Assemble(¯o_assembler, | 6106 return compiler.Assemble(¯o_assembler, |
| 6102 node, | 6107 node, |
| 6103 data->capture_count, | 6108 data->capture_count, |
| 6104 pattern); | 6109 pattern); |
| 6105 } | 6110 } |
| 6106 | 6111 |
| 6107 | 6112 |
| 6108 }} // namespace v8::internal | 6113 }} // namespace v8::internal |
| OLD | NEW |