| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 new RegExpCharacterClass('.'), | 1869 new RegExpCharacterClass('.'), |
| 1870 &compiler, | 1870 &compiler, |
| 1871 captured_body, | 1871 captured_body, |
| 1872 compiler.backtrack()); | 1872 compiler.backtrack()); |
| 1873 if (node_return != NULL) *node_return = node; | 1873 if (node_return != NULL) *node_return = node; |
| 1874 Analysis analysis; | 1874 Analysis analysis; |
| 1875 analysis.EnsureAnalyzed(node); | 1875 analysis.EnsureAnalyzed(node); |
| 1876 byte codes[10240]; | 1876 byte codes[10240]; |
| 1877 Re2kAssembler assembler(Vector<byte>(codes, 1024)); | 1877 Re2kAssembler assembler(Vector<byte>(codes, 1024)); |
| 1878 RegExpMacroAssemblerRe2k macro_assembler(&assembler); | 1878 RegExpMacroAssemblerRe2k macro_assembler(&assembler); |
| 1879 return compiler.Assemble(¯o_assembler, node, input->capture_count, ignore_
case); | 1879 return compiler.Assemble(¯o_assembler, |
| 1880 node, |
| 1881 input->capture_count, |
| 1882 ignore_case); |
| 1880 } | 1883 } |
| 1881 | 1884 |
| 1882 RegExpMacroAssembler::RegExpMacroAssembler() { | 1885 RegExpMacroAssembler::RegExpMacroAssembler() { |
| 1883 | |
| 1884 } | 1886 } |
| 1885 | 1887 |
| 1886 RegExpMacroAssembler::~RegExpMacroAssembler() { | 1888 RegExpMacroAssembler::~RegExpMacroAssembler() { |
| 1887 | |
| 1888 } | 1889 } |
| 1889 | 1890 |
| 1890 | 1891 |
| 1891 }} // namespace v8::internal | 1892 }} // namespace v8::internal |
| OLD | NEW |