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

Unified Diff: src/code-stub-assembler.cc

Issue 2799663003: [regexp] Add additional asserts to RegExp builtins (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index b366de13a19af1aabb58aba582e81f8c65946709..5ec80a78b933b4b2be3fcadb8c940271cefe419f 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -3105,6 +3105,10 @@ Node* CodeStubAssembler::IsFixedTypedArray(Node* object) {
Int32Constant(LAST_FIXED_TYPED_ARRAY_TYPE)));
}
+Node* CodeStubAssembler::IsJSRegExp(Node* object) {
+ return HasInstanceType(object, JS_REGEXP_TYPE);
+}
+
Node* CodeStubAssembler::StringCharCodeAt(Node* string, Node* index,
ParameterMode parameter_mode) {
CSA_ASSERT(this, IsString(string));
« no previous file with comments | « src/code-stub-assembler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698