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

Side by Side Diff: src/builtins/builtins-regexp.h

Issue 2738413002: [regexp] Port RegExpExecStub to CSA (mostly) (Closed)
Patch Set: Rebase Created 3 years, 9 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/bailout-reason.h ('k') | src/builtins/builtins-regexp.cc » ('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 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 15 matching lines...) Expand all
26 protected: 26 protected:
27 Node* FastLoadLastIndex(Node* regexp); 27 Node* FastLoadLastIndex(Node* regexp);
28 Node* SlowLoadLastIndex(Node* context, Node* regexp); 28 Node* SlowLoadLastIndex(Node* context, Node* regexp);
29 Node* LoadLastIndex(Node* context, Node* regexp, bool is_fastpath); 29 Node* LoadLastIndex(Node* context, Node* regexp, bool is_fastpath);
30 30
31 void FastStoreLastIndex(Node* regexp, Node* value); 31 void FastStoreLastIndex(Node* regexp, Node* value);
32 void SlowStoreLastIndex(Node* context, Node* regexp, Node* value); 32 void SlowStoreLastIndex(Node* context, Node* regexp, Node* value);
33 void StoreLastIndex(Node* context, Node* regexp, Node* value, 33 void StoreLastIndex(Node* context, Node* regexp, Node* value,
34 bool is_fastpath); 34 bool is_fastpath);
35 35
36 // Loads {var_string_start} and {var_string_end} with the corresponding
37 // offsets into the given {string}.
38 void GetStringPointers(Node* const string, Node* const offset,
39 Node* const last_index, Node* const string_length,
40 bool is_one_byte, Variable* var_string_start,
41 Variable* var_string_end);
42
43 // Low level logic around the actual call into generated Irregexp code.
44 Node* IrregexpExec(Node* const context, Node* const regexp,
45 Node* const string, Node* const last_index,
46 Node* const match_info);
47
36 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp, 48 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp,
37 Node* const match_info, 49 Node* const match_info,
38 Node* const string); 50 Node* const string);
39 51
40 Node* RegExpPrototypeExecBodyWithoutResult(Node* const context, 52 Node* RegExpPrototypeExecBodyWithoutResult(Node* const context,
41 Node* const regexp, 53 Node* const regexp,
42 Node* const string, 54 Node* const string,
43 Label* if_didnotmatch, 55 Label* if_didnotmatch,
44 const bool is_fastpath); 56 const bool is_fastpath);
45 Node* RegExpPrototypeExecBody(Node* const context, Node* const regexp, 57 Node* RegExpPrototypeExecBody(Node* const context, Node* const regexp,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, 101 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string,
90 Node* replace_callable); 102 Node* replace_callable);
91 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, 103 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string,
92 Node* replace_string); 104 Node* replace_string);
93 }; 105 };
94 106
95 } // namespace internal 107 } // namespace internal
96 } // namespace v8 108 } // namespace v8
97 109
98 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ 110 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698