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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 Label* if_didnotmatch, | 51 Label* if_didnotmatch, |
52 const bool is_fastpath); | 52 const bool is_fastpath); |
53 Node* RegExpPrototypeExecBody(Node* const context, Node* const regexp, | 53 Node* RegExpPrototypeExecBody(Node* const context, Node* const regexp, |
54 Node* const string, const bool is_fastpath); | 54 Node* const string, const bool is_fastpath); |
55 | 55 |
56 Node* ThrowIfNotJSReceiver(Node* context, Node* maybe_receiver, | 56 Node* ThrowIfNotJSReceiver(Node* context, Node* maybe_receiver, |
57 MessageTemplate::Template msg_template, | 57 MessageTemplate::Template msg_template, |
58 char const* method_name); | 58 char const* method_name); |
59 | 59 |
60 // Analogous to BranchIfFastRegExp, for use in asserts. | 60 // Analogous to BranchIfFastRegExp, for use in asserts. |
| 61 Node* IsFastRegExp(Node* const context, Node* const object); |
61 Node* IsFastRegExp(Node* const context, Node* const object, Node* const map); | 62 Node* IsFastRegExp(Node* const context, Node* const object, Node* const map); |
62 | 63 |
63 // Performs fast path checks on the given object itself, but omits prototype | 64 // Performs fast path checks on the given object itself, but omits prototype |
64 // checks. | 65 // checks. |
65 Node* IsFastRegExpNoPrototype(Node* const context, Node* const object, | 66 Node* IsFastRegExpNoPrototype(Node* const context, Node* const object, |
66 Node* const map); | 67 Node* const map); |
67 | 68 |
68 void BranchIfFastRegExpResult(Node* context, Node* map, | 69 void BranchIfFastRegExpResult(Node* context, Node* map, |
69 Label* if_isunmodified, Label* if_ismodified); | 70 Label* if_isunmodified, Label* if_ismodified); |
70 | 71 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, | 105 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, |
105 Node* replace_callable); | 106 Node* replace_callable); |
106 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, | 107 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, |
107 Node* replace_string); | 108 Node* replace_string); |
108 }; | 109 }; |
109 | 110 |
110 } // namespace internal | 111 } // namespace internal |
111 } // namespace v8 | 112 } // namespace v8 |
112 | 113 |
113 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ | 114 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ |
OLD | NEW |