OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_BUILTINS_BUILTINS_REGEXP_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_REGEXP_H_ |
6 #define V8_BUILTINS_BUILTINS_REGEXP_H_ | 6 #define V8_BUILTINS_BUILTINS_REGEXP_H_ |
7 | 7 |
8 #include "src/code-stub-assembler.h" | 8 #include "src/code-stub-assembler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 18 matching lines...) Expand all Loading... |
29 void StoreLastIndex(Node* context, Node* regexp, Node* value, | 29 void StoreLastIndex(Node* context, Node* regexp, Node* value, |
30 bool is_fastpath); | 30 bool is_fastpath); |
31 | 31 |
32 // Loads {var_string_start} and {var_string_end} with the corresponding | 32 // Loads {var_string_start} and {var_string_end} with the corresponding |
33 // offsets into the given {string_data}. | 33 // offsets into the given {string_data}. |
34 void GetStringPointers(Node* const string_data, Node* const offset, | 34 void GetStringPointers(Node* const string_data, Node* const offset, |
35 Node* const last_index, Node* const string_length, | 35 Node* const last_index, Node* const string_length, |
36 String::Encoding encoding, Variable* var_string_start, | 36 String::Encoding encoding, Variable* var_string_start, |
37 Variable* var_string_end); | 37 Variable* var_string_end); |
38 | 38 |
39 // Low level logic around the actual call into pattern matching code. | 39 // Low level logic around the actual call into generated Irregexp code. |
40 Node* RegExpExecInternal(Node* const context, Node* const regexp, | 40 Node* IrregexpExec(Node* const context, Node* const regexp, |
41 Node* const string, Node* const last_index, | 41 Node* const string, Node* const last_index, |
42 Node* const match_info); | 42 Node* const match_info); |
43 | 43 |
44 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp, | 44 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp, |
45 Node* const match_info, | 45 Node* const match_info, |
46 Node* const string); | 46 Node* const string); |
47 | 47 |
48 Node* RegExpPrototypeExecBodyWithoutResult(Node* const context, | 48 Node* RegExpPrototypeExecBodyWithoutResult(Node* const context, |
49 Node* const regexp, | 49 Node* const regexp, |
50 Node* const string, | 50 Node* const string, |
51 Label* if_didnotmatch, | 51 Label* if_didnotmatch, |
52 const bool is_fastpath); | 52 const bool is_fastpath); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, | 109 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, |
110 Node* replace_callable); | 110 Node* replace_callable); |
111 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, | 111 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, |
112 Node* replace_string); | 112 Node* replace_string); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace internal | 115 } // namespace internal |
116 } // namespace v8 | 116 } // namespace v8 |
117 | 117 |
118 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ | 118 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ |
OLD | NEW |