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

Side by Side Diff: src/jsregexp.cc

Issue 817143002: Contribution of PowerPC port (continuation of 422063005) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Contribution of PowerPC port - rebase and address initial set of comments Created 5 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
« 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 // 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/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 13 matching lines...) Expand all
24 24
25 #ifndef V8_INTERPRETED_REGEXP 25 #ifndef V8_INTERPRETED_REGEXP
26 #if V8_TARGET_ARCH_IA32 26 #if V8_TARGET_ARCH_IA32
27 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT 27 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT
28 #elif V8_TARGET_ARCH_X64 28 #elif V8_TARGET_ARCH_X64
29 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT 29 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT
30 #elif V8_TARGET_ARCH_ARM64 30 #elif V8_TARGET_ARCH_ARM64
31 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT 31 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT
32 #elif V8_TARGET_ARCH_ARM 32 #elif V8_TARGET_ARCH_ARM
33 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT 33 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT
34 #elif V8_TARGET_ARCH_PPC
35 #include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT
34 #elif V8_TARGET_ARCH_MIPS 36 #elif V8_TARGET_ARCH_MIPS
35 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT 37 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT
36 #elif V8_TARGET_ARCH_MIPS64 38 #elif V8_TARGET_ARCH_MIPS64
37 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT 39 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT
38 #elif V8_TARGET_ARCH_X87 40 #elif V8_TARGET_ARCH_X87
39 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT 41 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT
40 #else 42 #else
41 #error Unsupported target architecture. 43 #error Unsupported target architecture.
42 #endif 44 #endif
43 #endif 45 #endif
(...skipping 6044 matching lines...) Expand 10 before | Expand all | Expand 10 after
6088 zone); 6090 zone);
6089 #elif V8_TARGET_ARCH_X64 6091 #elif V8_TARGET_ARCH_X64
6090 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2, 6092 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2,
6091 zone); 6093 zone);
6092 #elif V8_TARGET_ARCH_ARM 6094 #elif V8_TARGET_ARCH_ARM
6093 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2, 6095 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2,
6094 zone); 6096 zone);
6095 #elif V8_TARGET_ARCH_ARM64 6097 #elif V8_TARGET_ARCH_ARM64
6096 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2, 6098 RegExpMacroAssemblerARM64 macro_assembler(mode, (data->capture_count + 1) * 2,
6097 zone); 6099 zone);
6100 #elif V8_TARGET_ARCH_PPC
6101 RegExpMacroAssemblerPPC 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);
6101 #elif V8_TARGET_ARCH_MIPS64 6106 #elif V8_TARGET_ARCH_MIPS64
6102 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2, 6107 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2,
6103 zone); 6108 zone);
6104 #elif V8_TARGET_ARCH_X87 6109 #elif V8_TARGET_ARCH_X87
6105 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2, 6110 RegExpMacroAssemblerX87 macro_assembler(mode, (data->capture_count + 1) * 2,
6106 zone); 6111 zone);
6107 #else 6112 #else
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
6143 Heap* heap = pattern->GetHeap(); 6148 Heap* heap = pattern->GetHeap();
6144 bool too_much = pattern->length() > RegExpImpl::kRegExpTooLargeToOptimize; 6149 bool too_much = pattern->length() > RegExpImpl::kRegExpTooLargeToOptimize;
6145 if (heap->total_regexp_code_generated() > RegExpImpl::kRegExpCompiledLimit && 6150 if (heap->total_regexp_code_generated() > RegExpImpl::kRegExpCompiledLimit &&
6146 heap->isolate()->memory_allocator()->SizeExecutable() > 6151 heap->isolate()->memory_allocator()->SizeExecutable() >
6147 RegExpImpl::kRegExpExecutableMemoryLimit) { 6152 RegExpImpl::kRegExpExecutableMemoryLimit) {
6148 too_much = true; 6153 too_much = true;
6149 } 6154 }
6150 return too_much; 6155 return too_much;
6151 } 6156 }
6152 }} // namespace v8::internal 6157 }} // 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