OLD | NEW |
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" |
11 #include "src/execution.h" | 11 #include "src/execution.h" |
12 #include "src/factory.h" | 12 #include "src/factory.h" |
13 #include "src/jsregexp-inl.h" | 13 #include "src/jsregexp-inl.h" |
14 #include "src/jsregexp.h" | 14 #include "src/jsregexp.h" |
15 #include "src/messages.h" | 15 #include "src/messages.h" |
16 #include "src/ostreams.h" | 16 #include "src/ostreams.h" |
17 #include "src/parser.h" | 17 #include "src/parser.h" |
18 #include "src/regexp-macro-assembler.h" | 18 #include "src/regexp-macro-assembler.h" |
19 #include "src/regexp-macro-assembler-irregexp.h" | 19 #include "src/regexp-macro-assembler-irregexp.h" |
20 #include "src/regexp-macro-assembler-tracer.h" | 20 #include "src/regexp-macro-assembler-tracer.h" |
21 #include "src/regexp-stack.h" | 21 #include "src/regexp-stack.h" |
22 #include "src/runtime/runtime.h" | 22 #include "src/runtime/runtime.h" |
| 23 #include "src/splay-tree-inl.h" |
23 #include "src/string-search.h" | 24 #include "src/string-search.h" |
24 #include "src/unicode-decoder.h" | 25 #include "src/unicode-decoder.h" |
25 | 26 |
26 #ifndef V8_INTERPRETED_REGEXP | 27 #ifndef V8_INTERPRETED_REGEXP |
27 #if V8_TARGET_ARCH_IA32 | 28 #if V8_TARGET_ARCH_IA32 |
28 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT | 29 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT |
29 #elif V8_TARGET_ARCH_X64 | 30 #elif V8_TARGET_ARCH_X64 |
30 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT | 31 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT |
31 #elif V8_TARGET_ARCH_ARM64 | 32 #elif V8_TARGET_ARCH_ARM64 |
32 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT | 33 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT |
(...skipping 6369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6402 bool too_much = pattern->length() > RegExpImpl::kRegExpTooLargeToOptimize; | 6403 bool too_much = pattern->length() > RegExpImpl::kRegExpTooLargeToOptimize; |
6403 if (heap->total_regexp_code_generated() > RegExpImpl::kRegExpCompiledLimit && | 6404 if (heap->total_regexp_code_generated() > RegExpImpl::kRegExpCompiledLimit && |
6404 heap->isolate()->memory_allocator()->SizeExecutable() > | 6405 heap->isolate()->memory_allocator()->SizeExecutable() > |
6405 RegExpImpl::kRegExpExecutableMemoryLimit) { | 6406 RegExpImpl::kRegExpExecutableMemoryLimit) { |
6406 too_much = true; | 6407 too_much = true; |
6407 } | 6408 } |
6408 return too_much; | 6409 return too_much; |
6409 } | 6410 } |
6410 } // namespace internal | 6411 } // namespace internal |
6411 } // namespace v8 | 6412 } // namespace v8 |
OLD | NEW |