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

Side by Side Diff: src/jsregexp.cc

Issue 143003013: Initial patch for a64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.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 // 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
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_A64
53 #include "a64/regexp-macro-assembler-a64.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 6026 matching lines...) Expand 10 before | Expand all | Expand 10 after
6088 6090
6089 #if V8_TARGET_ARCH_IA32 6091 #if V8_TARGET_ARCH_IA32
6090 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2, 6092 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2,
6091 zone); 6093 zone);
6092 #elif V8_TARGET_ARCH_X64 6094 #elif V8_TARGET_ARCH_X64
6093 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, 6095 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2,
6094 zone); 6096 zone);
6095 #elif V8_TARGET_ARCH_ARM 6097 #elif V8_TARGET_ARCH_ARM
6096 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, 6098 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2,
6097 zone); 6099 zone);
6100 #elif V8_TARGET_ARCH_A64
6101 RegExpMacroAssemblerA64 macro_assembler(mode, (data->capture_count + 1) * 2,
6102 zone);
6098 #elif V8_TARGET_ARCH_MIPS 6103 #elif V8_TARGET_ARCH_MIPS
6099 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, 6104 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2,
6100 zone); 6105 zone);
6106 #else
6107 #error "Unsupported architecture"
6101 #endif 6108 #endif
6102 6109
6103 #else // V8_INTERPRETED_REGEXP 6110 #else // V8_INTERPRETED_REGEXP
6104 // Interpreted regexp implementation. 6111 // Interpreted regexp implementation.
6105 EmbeddedVector<byte, 1024> codes; 6112 EmbeddedVector<byte, 1024> codes;
6106 RegExpMacroAssemblerIrregexp macro_assembler(codes, zone); 6113 RegExpMacroAssemblerIrregexp macro_assembler(codes, zone);
6107 #endif // V8_INTERPRETED_REGEXP 6114 #endif // V8_INTERPRETED_REGEXP
6108 6115
6109 // Inserted here, instead of in Assembler, because it depends on information 6116 // Inserted here, instead of in Assembler, because it depends on information
6110 // in the AST that isn't replicated in the Node structure. 6117 // in the AST that isn't replicated in the Node structure.
(...skipping 12 matching lines...) Expand all
6123 } 6130 }
6124 6131
6125 return compiler.Assemble(&macro_assembler, 6132 return compiler.Assemble(&macro_assembler,
6126 node, 6133 node,
6127 data->capture_count, 6134 data->capture_count,
6128 pattern); 6135 pattern);
6129 } 6136 }
6130 6137
6131 6138
6132 }} // namespace v8::internal 6139 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698