| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "regexp-macro-assembler.h" | 42 #include "regexp-macro-assembler.h" |
| 43 #include "regexp-macro-assembler-tracer.h" | 43 #include "regexp-macro-assembler-tracer.h" |
| 44 #include "regexp-macro-assembler-irregexp.h" | 44 #include "regexp-macro-assembler-irregexp.h" |
| 45 #include "regexp-stack.h" | 45 #include "regexp-stack.h" |
| 46 | 46 |
| 47 #ifndef V8_INTERPRETED_REGEXP | 47 #ifndef V8_INTERPRETED_REGEXP |
| 48 #if V8_TARGET_ARCH_IA32 | 48 #if V8_TARGET_ARCH_IA32 |
| 49 #include "ia32/regexp-macro-assembler-ia32.h" | 49 #include "ia32/regexp-macro-assembler-ia32.h" |
| 50 #elif V8_TARGET_ARCH_X64 | 50 #elif V8_TARGET_ARCH_X64 |
| 51 #include "x64/regexp-macro-assembler-x64.h" | 51 #include "x64/regexp-macro-assembler-x64.h" |
| 52 #elif V8_TARGET_ARCH_X32 |
| 53 #include "x32/regexp-macro-assembler-x32.h" |
| 52 #elif V8_TARGET_ARCH_ARM | 54 #elif V8_TARGET_ARCH_ARM |
| 53 #include "arm/regexp-macro-assembler-arm.h" | 55 #include "arm/regexp-macro-assembler-arm.h" |
| 54 #elif V8_TARGET_ARCH_MIPS | 56 #elif V8_TARGET_ARCH_MIPS |
| 55 #include "mips/regexp-macro-assembler-mips.h" | 57 #include "mips/regexp-macro-assembler-mips.h" |
| 56 #else | 58 #else |
| 57 #error Unsupported target architecture. | 59 #error Unsupported target architecture. |
| 58 #endif | 60 #endif |
| 59 #endif | 61 #endif |
| 60 | 62 |
| 61 #include "interpreter-irregexp.h" | 63 #include "interpreter-irregexp.h" |
| (...skipping 6021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6083 NativeRegExpMacroAssembler::Mode mode = | 6085 NativeRegExpMacroAssembler::Mode mode = |
| 6084 is_ascii ? NativeRegExpMacroAssembler::ASCII | 6086 is_ascii ? NativeRegExpMacroAssembler::ASCII |
| 6085 : NativeRegExpMacroAssembler::UC16; | 6087 : NativeRegExpMacroAssembler::UC16; |
| 6086 | 6088 |
| 6087 #if V8_TARGET_ARCH_IA32 | 6089 #if V8_TARGET_ARCH_IA32 |
| 6088 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2, | 6090 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6089 zone); | 6091 zone); |
| 6090 #elif V8_TARGET_ARCH_X64 | 6092 #elif V8_TARGET_ARCH_X64 |
| 6091 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, | 6093 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6092 zone); | 6094 zone); |
| 6095 #elif V8_TARGET_ARCH_X32 |
| 6096 RegExpMacroAssemblerX32 macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6097 zone); |
| 6093 #elif V8_TARGET_ARCH_ARM | 6098 #elif V8_TARGET_ARCH_ARM |
| 6094 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, | 6099 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6095 zone); | 6100 zone); |
| 6096 #elif V8_TARGET_ARCH_MIPS | 6101 #elif V8_TARGET_ARCH_MIPS |
| 6097 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, | 6102 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, |
| 6098 zone); | 6103 zone); |
| 6099 #endif | 6104 #endif |
| 6100 | 6105 |
| 6101 #else // V8_INTERPRETED_REGEXP | 6106 #else // V8_INTERPRETED_REGEXP |
| 6102 // Interpreted regexp implementation. | 6107 // Interpreted regexp implementation. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6121 } | 6126 } |
| 6122 | 6127 |
| 6123 return compiler.Assemble(¯o_assembler, | 6128 return compiler.Assemble(¯o_assembler, |
| 6124 node, | 6129 node, |
| 6125 data->capture_count, | 6130 data->capture_count, |
| 6126 pattern); | 6131 pattern); |
| 6127 } | 6132 } |
| 6128 | 6133 |
| 6129 | 6134 |
| 6130 }} // namespace v8::internal | 6135 }} // namespace v8::internal |
| OLD | NEW |