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

Unified Diff: src/builtins/builtins-regexp.h

Issue 2668703002: [stubs] Add RegExpReplace and RegExpSplit stubs (Closed)
Patch Set: BranchIfFastRegExp/IsFastRegExpMap Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-regexp.h
diff --git a/src/builtins/builtins-regexp.h b/src/builtins/builtins-regexp.h
index 0b169a96684d74c763bb5bc9fcc8bcaa10446c78..f14a41e051fbd4aba01aae6f7f14dd5227a2980a 100644
--- a/src/builtins/builtins-regexp.h
+++ b/src/builtins/builtins-regexp.h
@@ -19,8 +19,9 @@ class RegExpBuiltinsAssembler : public CodeStubAssembler {
explicit RegExpBuiltinsAssembler(CodeAssemblerState* state)
: CodeStubAssembler(state) {}
- void BranchIfFastRegExp(Node* context, Node* map, Label* if_isunmodified,
- Label* if_ismodified);
+ void BranchIfFastRegExp(Node* const context, Node* const map,
+ Label* const if_isunmodified,
+ Label* const if_ismodified);
protected:
Node* FastLoadLastIndex(Node* regexp);
@@ -48,6 +49,9 @@ class RegExpBuiltinsAssembler : public CodeStubAssembler {
MessageTemplate::Template msg_template,
char const* method_name);
+ // Analogous to BranchIfFastRegExp, for use in asserts.
+ Node* IsFastRegExpMap(Node* const context, Node* const map);
+
Node* IsInitialRegExpMap(Node* context, Node* map);
void BranchIfFastRegExpResult(Node* context, Node* map,
Label* if_isunmodified, Label* if_ismodified);
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698