| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "ast.h" | 7 #include "ast.h" |
| 8 #include "compiler.h" | 8 #include "compiler.h" |
| 9 #include "execution.h" | 9 #include "execution.h" |
| 10 #include "factory.h" | 10 #include "factory.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #if V8_TARGET_ARCH_IA32 | 25 #if V8_TARGET_ARCH_IA32 |
| 26 #include "ia32/regexp-macro-assembler-ia32.h" | 26 #include "ia32/regexp-macro-assembler-ia32.h" |
| 27 #elif V8_TARGET_ARCH_X64 | 27 #elif V8_TARGET_ARCH_X64 |
| 28 #include "x64/regexp-macro-assembler-x64.h" | 28 #include "x64/regexp-macro-assembler-x64.h" |
| 29 #elif V8_TARGET_ARCH_ARM64 | 29 #elif V8_TARGET_ARCH_ARM64 |
| 30 #include "arm64/regexp-macro-assembler-arm64.h" | 30 #include "arm64/regexp-macro-assembler-arm64.h" |
| 31 #elif V8_TARGET_ARCH_ARM | 31 #elif V8_TARGET_ARCH_ARM |
| 32 #include "arm/regexp-macro-assembler-arm.h" | 32 #include "arm/regexp-macro-assembler-arm.h" |
| 33 #elif V8_TARGET_ARCH_MIPS | 33 #elif V8_TARGET_ARCH_MIPS |
| 34 #include "mips/regexp-macro-assembler-mips.h" | 34 #include "mips/regexp-macro-assembler-mips.h" |
| 35 #elif V8_TARGET_ARCH_X87 |
| 36 #include "x87/regexp-macro-assembler-x87.h" |
| 35 #else | 37 #else |
| 36 #error Unsupported target architecture. | 38 #error Unsupported target architecture. |
| 37 #endif | 39 #endif |
| 38 #endif | 40 #endif |
| 39 | 41 |
| 40 #include "interpreter-irregexp.h" | 42 #include "interpreter-irregexp.h" |
| 41 | 43 |
| 42 | 44 |
| 43 namespace v8 { | 45 namespace v8 { |
| 44 namespace internal { | 46 namespace internal { |
| (...skipping 6023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6068 zone); | 6070 zone); |
| 6069 #elif V8_TARGET_ARCH_ARM | 6071 #elif V8_TARGET_ARCH_ARM |
| 6070 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, | 6072 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6071 zone); | 6073 zone); |
| 6072 #elif V8_TARGET_ARCH_ARM64 | 6074 #elif V8_TARGET_ARCH_ARM64 |
| 6073 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, | 6075 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6074 zone); | 6076 zone); |
| 6075 #elif V8_TARGET_ARCH_MIPS | 6077 #elif V8_TARGET_ARCH_MIPS |
| 6076 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, | 6078 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6077 zone); | 6079 zone); |
| 6080 #elif V8_TARGET_ARCH_X87 |
| 6081 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6082 zone); |
| 6078 #else | 6083 #else |
| 6079 #error "Unsupported architecture" | 6084 #error "Unsupported architecture" |
| 6080 #endif | 6085 #endif |
| 6081 | 6086 |
| 6082 #else // V8_INTERPRETED_REGEXP | 6087 #else // V8_INTERPRETED_REGEXP |
| 6083 // Interpreted regexp implementation. | 6088 // Interpreted regexp implementation. |
| 6084 EmbeddedVector<byte, 1024> codes; | 6089 EmbeddedVector<byte, 1024> codes; |
| 6085 RegExpMacroAssemblerIrregexp macro_assembler(codes, zone); | 6090 RegExpMacroAssemblerIrregexp macro_assembler(codes, zone); |
| 6086 #endif // V8_INTERPRETED_REGEXP | 6091 #endif // V8_INTERPRETED_REGEXP |
| 6087 | 6092 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6102 } | 6107 } |
| 6103 | 6108 |
| 6104 return compiler.Assemble(¯o_assembler, | 6109 return compiler.Assemble(¯o_assembler, |
| 6105 node, | 6110 node, |
| 6106 data->capture_count, | 6111 data->capture_count, |
| 6107 pattern); | 6112 pattern); |
| 6108 } | 6113 } |
| 6109 | 6114 |
| 6110 | 6115 |
| 6111 }} // namespace v8::internal | 6116 }} // namespace v8::internal |
| OLD | NEW |