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

Side by Side Diff: src/regexp/jsregexp.cc

Issue 1768383002: S390: Initial impl of regexp (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase to master and sort file in alphabetic ordering Created 4 years, 9 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 | « BUILD.gn ('k') | src/regexp/regexp-macro-assembler.h » ('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 "src/regexp/jsregexp.h" 5 #include "src/regexp/jsregexp.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/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 23 matching lines...) Expand all
34 #if V8_TARGET_ARCH_IA32 34 #if V8_TARGET_ARCH_IA32
35 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" 35 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h"
36 #elif V8_TARGET_ARCH_X64 36 #elif V8_TARGET_ARCH_X64
37 #include "src/regexp/x64/regexp-macro-assembler-x64.h" 37 #include "src/regexp/x64/regexp-macro-assembler-x64.h"
38 #elif V8_TARGET_ARCH_ARM64 38 #elif V8_TARGET_ARCH_ARM64
39 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h" 39 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h"
40 #elif V8_TARGET_ARCH_ARM 40 #elif V8_TARGET_ARCH_ARM
41 #include "src/regexp/arm/regexp-macro-assembler-arm.h" 41 #include "src/regexp/arm/regexp-macro-assembler-arm.h"
42 #elif V8_TARGET_ARCH_PPC 42 #elif V8_TARGET_ARCH_PPC
43 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" 43 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h"
44 #elif V8_TARGET_ARCH_S390
45 #include "src/regexp/s390/regexp-macro-assembler-s390.h"
44 #elif V8_TARGET_ARCH_MIPS 46 #elif V8_TARGET_ARCH_MIPS
45 #include "src/regexp/mips/regexp-macro-assembler-mips.h" 47 #include "src/regexp/mips/regexp-macro-assembler-mips.h"
46 #elif V8_TARGET_ARCH_MIPS64 48 #elif V8_TARGET_ARCH_MIPS64
47 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" 49 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h"
48 #elif V8_TARGET_ARCH_X87 50 #elif V8_TARGET_ARCH_X87
49 #include "src/regexp/x87/regexp-macro-assembler-x87.h" 51 #include "src/regexp/x87/regexp-macro-assembler-x87.h"
50 #else 52 #else
51 #error Unsupported target architecture. 53 #error Unsupported target architecture.
52 #endif 54 #endif
53 #endif 55 #endif
(...skipping 6642 matching lines...) Expand 10 before | Expand all | Expand 10 after
6696 (data->capture_count + 1) * 2); 6698 (data->capture_count + 1) * 2);
6697 #elif V8_TARGET_ARCH_X64 6699 #elif V8_TARGET_ARCH_X64
6698 RegExpMacroAssemblerX64 macro_assembler(isolate, zone, mode, 6700 RegExpMacroAssemblerX64 macro_assembler(isolate, zone, mode,
6699 (data->capture_count + 1) * 2); 6701 (data->capture_count + 1) * 2);
6700 #elif V8_TARGET_ARCH_ARM 6702 #elif V8_TARGET_ARCH_ARM
6701 RegExpMacroAssemblerARM macro_assembler(isolate, zone, mode, 6703 RegExpMacroAssemblerARM macro_assembler(isolate, zone, mode,
6702 (data->capture_count + 1) * 2); 6704 (data->capture_count + 1) * 2);
6703 #elif V8_TARGET_ARCH_ARM64 6705 #elif V8_TARGET_ARCH_ARM64
6704 RegExpMacroAssemblerARM64 macro_assembler(isolate, zone, mode, 6706 RegExpMacroAssemblerARM64 macro_assembler(isolate, zone, mode,
6705 (data->capture_count + 1) * 2); 6707 (data->capture_count + 1) * 2);
6708 #elif V8_TARGET_ARCH_S390
6709 RegExpMacroAssemblerS390 macro_assembler(isolate, zone, mode,
6710 (data->capture_count + 1) * 2);
6706 #elif V8_TARGET_ARCH_PPC 6711 #elif V8_TARGET_ARCH_PPC
6707 RegExpMacroAssemblerPPC macro_assembler(isolate, zone, mode, 6712 RegExpMacroAssemblerPPC macro_assembler(isolate, zone, mode,
6708 (data->capture_count + 1) * 2); 6713 (data->capture_count + 1) * 2);
6709 #elif V8_TARGET_ARCH_MIPS 6714 #elif V8_TARGET_ARCH_MIPS
6710 RegExpMacroAssemblerMIPS macro_assembler(isolate, zone, mode, 6715 RegExpMacroAssemblerMIPS macro_assembler(isolate, zone, mode,
6711 (data->capture_count + 1) * 2); 6716 (data->capture_count + 1) * 2);
6712 #elif V8_TARGET_ARCH_MIPS64 6717 #elif V8_TARGET_ARCH_MIPS64
6713 RegExpMacroAssemblerMIPS macro_assembler(isolate, zone, mode, 6718 RegExpMacroAssemblerMIPS macro_assembler(isolate, zone, mode,
6714 (data->capture_count + 1) * 2); 6719 (data->capture_count + 1) * 2);
6715 #elif V8_TARGET_ARCH_X87 6720 #elif V8_TARGET_ARCH_X87
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
6859 6864
6860 6865
6861 void RegExpResultsCache::Clear(FixedArray* cache) { 6866 void RegExpResultsCache::Clear(FixedArray* cache) {
6862 for (int i = 0; i < kRegExpResultsCacheSize; i++) { 6867 for (int i = 0; i < kRegExpResultsCacheSize; i++) {
6863 cache->set(i, Smi::FromInt(0)); 6868 cache->set(i, Smi::FromInt(0));
6864 } 6869 }
6865 } 6870 }
6866 6871
6867 } // namespace internal 6872 } // namespace internal
6868 } // namespace v8 6873 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/regexp/regexp-macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698