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 12 matching lines...) Loading... |
23 | 23 |
24 #ifndef V8_INTERPRETED_REGEXP | 24 #ifndef V8_INTERPRETED_REGEXP |
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_PPC |
| 34 #include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT |
33 #elif V8_TARGET_ARCH_MIPS | 35 #elif V8_TARGET_ARCH_MIPS |
34 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT | 36 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT |
35 #elif V8_TARGET_ARCH_MIPS64 | 37 #elif V8_TARGET_ARCH_MIPS64 |
36 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT | 38 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT |
37 #elif V8_TARGET_ARCH_X87 | 39 #elif V8_TARGET_ARCH_X87 |
38 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT | 40 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT |
39 #else | 41 #else |
40 #error Unsupported target architecture. | 42 #error Unsupported target architecture. |
41 #endif | 43 #endif |
42 #endif | 44 #endif |
(...skipping 6018 matching lines...) Loading... |
6061 zone); | 6063 zone); |
6062 #elif V8_TARGET_ARCH_X64 | 6064 #elif V8_TARGET_ARCH_X64 |
6063 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, | 6065 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, |
6064 zone); | 6066 zone); |
6065 #elif V8_TARGET_ARCH_ARM | 6067 #elif V8_TARGET_ARCH_ARM |
6066 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, | 6068 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, |
6067 zone); | 6069 zone); |
6068 #elif V8_TARGET_ARCH_ARM64 | 6070 #elif V8_TARGET_ARCH_ARM64 |
6069 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, | 6071 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, |
6070 zone); | 6072 zone); |
| 6073 #elif V8_TARGET_ARCH_PPC |
| 6074 RegExpMacroAssemblerPPC macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6075 zone); |
6071 #elif V8_TARGET_ARCH_MIPS | 6076 #elif V8_TARGET_ARCH_MIPS |
6072 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, | 6077 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
6073 zone); | 6078 zone); |
6074 #elif V8_TARGET_ARCH_MIPS64 | 6079 #elif V8_TARGET_ARCH_MIPS64 |
6075 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, | 6080 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
6076 zone); | 6081 zone); |
6077 #elif V8_TARGET_ARCH_X87 | 6082 #elif V8_TARGET_ARCH_X87 |
6078 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, | 6083 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, |
6079 zone); | 6084 zone); |
6080 #else | 6085 #else |
(...skipping 23 matching lines...) Loading... |
6104 } | 6109 } |
6105 | 6110 |
6106 return compiler.Assemble(¯o_assembler, | 6111 return compiler.Assemble(¯o_assembler, |
6107 node, | 6112 node, |
6108 data->capture_count, | 6113 data->capture_count, |
6109 pattern); | 6114 pattern); |
6110 } | 6115 } |
6111 | 6116 |
6112 | 6117 |
6113 }} // namespace v8::internal | 6118 }} // namespace v8::internal |
OLD | NEW |