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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Utility method, remove once dotall is unstaged. | 82 // Utility method, remove once dotall is unstaged. |
83 Node* IsDotAllEnabled(Isolate* isolate); | 83 Node* IsDotAllEnabled(Isolate* isolate); |
84 | 84 |
85 Node* IsRegExp(Node* const context, Node* const maybe_receiver); | 85 Node* IsRegExp(Node* const context, Node* const maybe_receiver); |
86 Node* RegExpInitialize(Node* const context, Node* const regexp, | 86 Node* RegExpInitialize(Node* const context, Node* const regexp, |
87 Node* const maybe_pattern, Node* const maybe_flags); | 87 Node* const maybe_pattern, Node* const maybe_flags); |
88 | 88 |
89 Node* RegExpExec(Node* context, Node* regexp, Node* string); | 89 Node* RegExpExec(Node* context, Node* regexp, Node* string); |
90 | 90 |
91 Node* AdvanceStringIndex(Node* const string, Node* const index, | 91 Node* AdvanceStringIndex(Node* const string, Node* const index, |
92 Node* const is_unicode); | 92 Node* const is_unicode, bool is_fastpath); |
93 | 93 |
94 void RegExpPrototypeMatchBody(Node* const context, Node* const regexp, | 94 void RegExpPrototypeMatchBody(Node* const context, Node* const regexp, |
95 Node* const string, const bool is_fastpath); | 95 Node* const string, const bool is_fastpath); |
96 | 96 |
97 void RegExpPrototypeSearchBodyFast(Node* const context, Node* const regexp, | 97 void RegExpPrototypeSearchBodyFast(Node* const context, Node* const regexp, |
98 Node* const string); | 98 Node* const string); |
99 void RegExpPrototypeSearchBodySlow(Node* const context, Node* const regexp, | 99 void RegExpPrototypeSearchBodySlow(Node* const context, Node* const regexp, |
100 Node* const string); | 100 Node* const string); |
101 | 101 |
102 void RegExpPrototypeSplitBody(Node* const context, Node* const regexp, | 102 void RegExpPrototypeSplitBody(Node* const context, Node* const regexp, |
103 Node* const string, Node* const limit); | 103 Node* const string, Node* const limit); |
104 | 104 |
105 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, | 105 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, |
106 Node* replace_callable); | 106 Node* replace_callable); |
107 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, | 107 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, |
108 Node* replace_string); | 108 Node* replace_string); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace internal | 111 } // namespace internal |
112 } // namespace v8 | 112 } // namespace v8 |
113 | 113 |
114 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ | 114 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ |
OLD | NEW |