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

Side by Side Diff: regexp2000/src/jsregexp.cc

Issue 10750: * Update to RegExp parsing and AST. (Closed)
Patch Set: Addressed review comments Created 12 years, 1 month 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 | « regexp2000/src/ast.h ('k') | regexp2000/src/parser.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 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
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(&macro_assembler, node, input->capture_count, ignore_ case); 1879 return compiler.Assemble(&macro_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
OLDNEW
« no previous file with comments | « regexp2000/src/ast.h ('k') | regexp2000/src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698