Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/jsregexp.cc

Issue 293743005: Introduce x87 port (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/lithium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
6102 } 6107 }
6103 6108
6104 return compiler.Assemble(&macro_assembler, 6109 return compiler.Assemble(&macro_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
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698