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

Side by Side Diff: src/regexp/jsregexp.h

Issue 2360983002: Enable component builds for fuzzers (Closed)
Patch Set: Rebase Created 4 years, 2 months 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 | « src/objects.h ('k') | src/wasm/ast-decoder.h » ('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 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 #ifndef V8_REGEXP_JSREGEXP_H_ 5 #ifndef V8_REGEXP_JSREGEXP_H_
6 #define V8_REGEXP_JSREGEXP_H_ 6 #define V8_REGEXP_JSREGEXP_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/regexp/regexp-ast.h" 10 #include "src/regexp/regexp-ast.h"
(...skipping 28 matching lines...) Expand all
39 // Parses the RegExp pattern and prepares the JSRegExp object with 39 // Parses the RegExp pattern and prepares the JSRegExp object with
40 // generic data and choice of implementation - as well as what 40 // generic data and choice of implementation - as well as what
41 // the implementation wants to store in the data field. 41 // the implementation wants to store in the data field.
42 // Returns false if compilation fails. 42 // Returns false if compilation fails.
43 MUST_USE_RESULT static MaybeHandle<Object> Compile(Handle<JSRegExp> re, 43 MUST_USE_RESULT static MaybeHandle<Object> Compile(Handle<JSRegExp> re,
44 Handle<String> pattern, 44 Handle<String> pattern,
45 JSRegExp::Flags flags); 45 JSRegExp::Flags flags);
46 46
47 // See ECMA-262 section 15.10.6.2. 47 // See ECMA-262 section 15.10.6.2.
48 // This function calls the garbage collector if necessary. 48 // This function calls the garbage collector if necessary.
49 MUST_USE_RESULT static MaybeHandle<Object> Exec( 49 V8_EXPORT_PRIVATE MUST_USE_RESULT static MaybeHandle<Object> Exec(
50 Handle<JSRegExp> regexp, Handle<String> subject, int index, 50 Handle<JSRegExp> regexp, Handle<String> subject, int index,
51 Handle<JSObject> lastMatchInfo); 51 Handle<JSObject> lastMatchInfo);
52 52
53 // Prepares a JSRegExp object with Irregexp-specific data. 53 // Prepares a JSRegExp object with Irregexp-specific data.
54 static void IrregexpInitialize(Handle<JSRegExp> re, 54 static void IrregexpInitialize(Handle<JSRegExp> re,
55 Handle<String> pattern, 55 Handle<String> pattern,
56 JSRegExp::Flags flags, 56 JSRegExp::Flags flags,
57 int capture_register_count); 57 int capture_register_count);
58 58
59 59
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 static const int kStringOffset = 0; 1578 static const int kStringOffset = 0;
1579 static const int kPatternOffset = 1; 1579 static const int kPatternOffset = 1;
1580 static const int kArrayOffset = 2; 1580 static const int kArrayOffset = 2;
1581 static const int kLastMatchOffset = 3; 1581 static const int kLastMatchOffset = 3;
1582 }; 1582 };
1583 1583
1584 } // namespace internal 1584 } // namespace internal
1585 } // namespace v8 1585 } // namespace v8
1586 1586
1587 #endif // V8_REGEXP_JSREGEXP_H_ 1587 #endif // V8_REGEXP_JSREGEXP_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/wasm/ast-decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698