| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 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 void BranchIfFastRegExp(Node* const context, Node* const object, |
| 61 Label* const if_isunmodified, |
| 62 Label* const if_ismodified); |
| 63 |
| 60 // Analogous to BranchIfFastRegExp, for use in asserts. | 64 // Analogous to BranchIfFastRegExp, for use in asserts. |
| 61 Node* IsFastRegExp(Node* const context, Node* const object); | 65 Node* IsFastRegExp(Node* const context, Node* const object); |
| 62 | 66 |
| 63 // Performs fast path checks on the given object itself, but omits prototype | 67 // Performs fast path checks on the given object itself, but omits prototype |
| 64 // checks. | 68 // checks. |
| 69 Node* IsFastRegExpNoPrototype(Node* const context, Node* const object); |
| 65 Node* IsFastRegExpNoPrototype(Node* const context, Node* const object, | 70 Node* IsFastRegExpNoPrototype(Node* const context, Node* const object, |
| 66 Node* const map); | 71 Node* const map); |
| 67 | 72 |
| 68 void BranchIfFastRegExpResult(Node* context, Node* map, | 73 void BranchIfFastRegExpResult(Node* const context, Node* const object, |
| 69 Label* if_isunmodified, Label* if_ismodified); | 74 Label* if_isunmodified, Label* if_ismodified); |
| 70 | 75 |
| 71 Node* FlagsGetter(Node* const context, Node* const regexp, bool is_fastpath); | 76 Node* FlagsGetter(Node* const context, Node* const regexp, bool is_fastpath); |
| 72 | 77 |
| 73 Node* FastFlagGetter(Node* const regexp, JSRegExp::Flag flag); | 78 Node* FastFlagGetter(Node* const regexp, JSRegExp::Flag flag); |
| 74 Node* SlowFlagGetter(Node* const context, Node* const regexp, | 79 Node* SlowFlagGetter(Node* const context, Node* const regexp, |
| 75 JSRegExp::Flag flag); | 80 JSRegExp::Flag flag); |
| 76 Node* FlagGetter(Node* const context, Node* const regexp, JSRegExp::Flag flag, | 81 Node* FlagGetter(Node* const context, Node* const regexp, JSRegExp::Flag flag, |
| 77 bool is_fastpath); | 82 bool is_fastpath); |
| 78 void FlagGetter(Node* context, Node* receiver, JSRegExp::Flag flag, | 83 void FlagGetter(Node* context, Node* receiver, JSRegExp::Flag flag, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 104 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, | 109 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, |
| 105 Node* replace_callable); | 110 Node* replace_callable); |
| 106 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, | 111 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, |
| 107 Node* replace_string); | 112 Node* replace_string); |
| 108 }; | 113 }; |
| 109 | 114 |
| 110 } // namespace internal | 115 } // namespace internal |
| 111 } // namespace v8 | 116 } // namespace v8 |
| 112 | 117 |
| 113 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ | 118 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ |
| OLD | NEW |