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

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

Issue 2744263002: [string] Refactor direct string conversions (Closed)
Patch Set: Tweaks 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 | « no previous file | 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 16 matching lines...) Expand all
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 36 // Loads {var_string_start} and {var_string_end} with the corresponding
37 // offsets into the given {string}. 37 // offsets into the given {string_data}.
38 void GetStringPointers(Node* const string, Node* const offset, 38 void GetStringPointers(Node* const string_data, Node* const offset,
39 Node* const last_index, Node* const string_length, 39 Node* const last_index, Node* const string_length,
40 bool is_one_byte, Variable* var_string_start, 40 String::Encoding encoding, Variable* var_string_start,
41 Variable* var_string_end); 41 Variable* var_string_end);
42 42
43 // Low level logic around the actual call into generated Irregexp code. 43 // Low level logic around the actual call into generated Irregexp code.
44 Node* IrregexpExec(Node* const context, Node* const regexp, 44 Node* IrregexpExec(Node* const context, Node* const regexp,
45 Node* const string, Node* const last_index, 45 Node* const string, Node* const last_index,
46 Node* const match_info); 46 Node* const match_info);
47 47
48 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp, 48 Node* ConstructNewResultFromMatchInfo(Node* const context, Node* const regexp,
49 Node* const match_info, 49 Node* const match_info,
50 Node* const string); 50 Node* const string);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, 101 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string,
102 Node* replace_callable); 102 Node* replace_callable);
103 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, 103 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string,
104 Node* replace_string); 104 Node* replace_string);
105 }; 105 };
106 106
107 } // namespace internal 107 } // namespace internal
108 } // namespace v8 108 } // namespace v8
109 109
110 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ 110 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698