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 "v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "ast.h" | 7 #include "src/ast.h" |
8 #include "compiler.h" | 8 #include "src/compiler.h" |
9 #include "execution.h" | 9 #include "src/execution.h" |
10 #include "factory.h" | 10 #include "src/factory.h" |
11 #include "jsregexp.h" | 11 #include "src/jsregexp.h" |
12 #include "jsregexp-inl.h" | 12 #include "src/jsregexp-inl.h" |
13 #include "platform.h" | 13 #include "src/platform.h" |
14 #include "string-search.h" | 14 #include "src/string-search.h" |
15 #include "runtime.h" | 15 #include "src/runtime.h" |
16 #include "compilation-cache.h" | 16 #include "src/compilation-cache.h" |
17 #include "string-stream.h" | 17 #include "src/string-stream.h" |
18 #include "parser.h" | 18 #include "src/parser.h" |
19 #include "regexp-macro-assembler.h" | 19 #include "src/regexp-macro-assembler.h" |
20 #include "regexp-macro-assembler-tracer.h" | 20 #include "src/regexp-macro-assembler-tracer.h" |
21 #include "regexp-macro-assembler-irregexp.h" | 21 #include "src/regexp-macro-assembler-irregexp.h" |
22 #include "regexp-stack.h" | 22 #include "src/regexp-stack.h" |
23 | 23 |
24 #ifndef V8_INTERPRETED_REGEXP | 24 #ifndef V8_INTERPRETED_REGEXP |
25 #if V8_TARGET_ARCH_IA32 | 25 #if V8_TARGET_ARCH_IA32 |
26 #include "ia32/regexp-macro-assembler-ia32.h" | 26 #include "src/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 "src/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 "src/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 "src/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 "src/mips/regexp-macro-assembler-mips.h" |
35 #elif V8_TARGET_ARCH_X87 | 35 #elif V8_TARGET_ARCH_X87 |
36 #include "x87/regexp-macro-assembler-x87.h" | 36 #include "src/x87/regexp-macro-assembler-x87.h" |
37 #else | 37 #else |
38 #error Unsupported target architecture. | 38 #error Unsupported target architecture. |
39 #endif | 39 #endif |
40 #endif | 40 #endif |
41 | 41 |
42 #include "interpreter-irregexp.h" | 42 #include "src/interpreter-irregexp.h" |
43 | 43 |
44 | 44 |
45 namespace v8 { | 45 namespace v8 { |
46 namespace internal { | 46 namespace internal { |
47 | 47 |
48 MaybeHandle<Object> RegExpImpl::CreateRegExpLiteral( | 48 MaybeHandle<Object> RegExpImpl::CreateRegExpLiteral( |
49 Handle<JSFunction> constructor, | 49 Handle<JSFunction> constructor, |
50 Handle<String> pattern, | 50 Handle<String> pattern, |
51 Handle<String> flags) { | 51 Handle<String> flags) { |
52 // Call the construct code with 2 arguments. | 52 // Call the construct code with 2 arguments. |
(...skipping 6053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6106 } | 6106 } |
6107 | 6107 |
6108 return compiler.Assemble(¯o_assembler, | 6108 return compiler.Assemble(¯o_assembler, |
6109 node, | 6109 node, |
6110 data->capture_count, | 6110 data->capture_count, |
6111 pattern); | 6111 pattern); |
6112 } | 6112 } |
6113 | 6113 |
6114 | 6114 |
6115 }} // namespace v8::internal | 6115 }} // namespace v8::internal |
OLD | NEW |