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

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

Issue 2808033002: [regexp] Properly handle HeapNumbers in AdvanceStringIndex (Closed)
Patch Set: Rebase Created 3 years, 8 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void FlagGetter(JSRegExp::Flag flag, v8::Isolate::UseCounterFeature counter, 66 void FlagGetter(JSRegExp::Flag flag, v8::Isolate::UseCounterFeature counter,
67 const char* method_name); 67 const char* method_name);
68 68
69 Node* IsRegExp(Node* const context, Node* const maybe_receiver); 69 Node* IsRegExp(Node* const context, Node* const maybe_receiver);
70 Node* RegExpInitialize(Node* const context, Node* const regexp, 70 Node* RegExpInitialize(Node* const context, Node* const regexp,
71 Node* const maybe_pattern, Node* const maybe_flags); 71 Node* const maybe_pattern, Node* const maybe_flags);
72 72
73 Node* RegExpExec(Node* context, Node* regexp, Node* string); 73 Node* RegExpExec(Node* context, Node* regexp, Node* string);
74 74
75 Node* AdvanceStringIndex(Node* const string, Node* const index, 75 Node* AdvanceStringIndex(Node* const string, Node* const index,
76 Node* const is_unicode); 76 Node* const is_unicode, bool is_fastpath);
77 77
78 void RegExpPrototypeMatchBody(Node* const context, Node* const regexp, 78 void RegExpPrototypeMatchBody(Node* const context, Node* const regexp,
79 Node* const string, const bool is_fastpath); 79 Node* const string, const bool is_fastpath);
80 80
81 void RegExpPrototypeSearchBodyFast(Node* const context, Node* const regexp, 81 void RegExpPrototypeSearchBodyFast(Node* const context, Node* const regexp,
82 Node* const string); 82 Node* const string);
83 void RegExpPrototypeSearchBodySlow(Node* const context, Node* const regexp, 83 void RegExpPrototypeSearchBodySlow(Node* const context, Node* const regexp,
84 Node* const string); 84 Node* const string);
85 85
86 void RegExpPrototypeSplitBody(Node* const context, Node* const regexp, 86 void RegExpPrototypeSplitBody(Node* const context, Node* const regexp,
87 Node* const string, Node* const limit); 87 Node* const string, Node* const limit);
88 88
89 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string, 89 Node* ReplaceGlobalCallableFastPath(Node* context, Node* regexp, Node* string,
90 Node* replace_callable); 90 Node* replace_callable);
91 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string, 91 Node* ReplaceSimpleStringFastPath(Node* context, Node* regexp, Node* string,
92 Node* replace_string); 92 Node* replace_string);
93 }; 93 };
94 94
95 } // namespace internal 95 } // namespace internal
96 } // namespace v8 96 } // namespace v8
97 97
98 #endif // V8_BUILTINS_BUILTINS_REGEXP_H_ 98 #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