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/compilation-cache.h" | 9 #include "src/compilation-cache.h" |
9 #include "src/compiler.h" | 10 #include "src/compiler.h" |
10 #include "src/execution.h" | 11 #include "src/execution.h" |
11 #include "src/factory.h" | 12 #include "src/factory.h" |
12 #include "src/jsregexp-inl.h" | 13 #include "src/jsregexp-inl.h" |
13 #include "src/jsregexp.h" | 14 #include "src/jsregexp.h" |
14 #include "src/parser.h" | 15 #include "src/parser.h" |
15 #include "src/platform.h" | |
16 #include "src/regexp-macro-assembler.h" | 16 #include "src/regexp-macro-assembler.h" |
17 #include "src/regexp-macro-assembler-irregexp.h" | 17 #include "src/regexp-macro-assembler-irregexp.h" |
18 #include "src/regexp-macro-assembler-tracer.h" | 18 #include "src/regexp-macro-assembler-tracer.h" |
19 #include "src/regexp-stack.h" | 19 #include "src/regexp-stack.h" |
20 #include "src/runtime.h" | 20 #include "src/runtime.h" |
21 #include "src/string-search.h" | 21 #include "src/string-search.h" |
22 #include "src/string-stream.h" | 22 #include "src/string-stream.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 |
(...skipping 4622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4648 } | 4648 } |
4649 stream()->Add("}\n"); | 4649 stream()->Add("}\n"); |
4650 } | 4650 } |
4651 | 4651 |
4652 | 4652 |
4653 void DispatchTable::Dump() { | 4653 void DispatchTable::Dump() { |
4654 HeapStringAllocator alloc; | 4654 HeapStringAllocator alloc; |
4655 StringStream stream(&alloc); | 4655 StringStream stream(&alloc); |
4656 DispatchTableDumper dumper(&stream); | 4656 DispatchTableDumper dumper(&stream); |
4657 tree()->ForEach(&dumper); | 4657 tree()->ForEach(&dumper); |
4658 OS::PrintError("%s", stream.ToCString().get()); | 4658 base::OS::PrintError("%s", stream.ToCString().get()); |
4659 } | 4659 } |
4660 | 4660 |
4661 | 4661 |
4662 void RegExpEngine::DotPrint(const char* label, | 4662 void RegExpEngine::DotPrint(const char* label, |
4663 RegExpNode* node, | 4663 RegExpNode* node, |
4664 bool ignore_case) { | 4664 bool ignore_case) { |
4665 DotPrinter printer(ignore_case); | 4665 DotPrinter printer(ignore_case); |
4666 printer.PrintNode(label, node); | 4666 printer.PrintNode(label, node); |
4667 } | 4667 } |
4668 | 4668 |
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6107 } | 6107 } |
6108 | 6108 |
6109 return compiler.Assemble(¯o_assembler, | 6109 return compiler.Assemble(¯o_assembler, |
6110 node, | 6110 node, |
6111 data->capture_count, | 6111 data->capture_count, |
6112 pattern); | 6112 pattern); |
6113 } | 6113 } |
6114 | 6114 |
6115 | 6115 |
6116 }} // namespace v8::internal | 6116 }} // namespace v8::internal |
OLD | NEW |