Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 03c80d2ed424cf755e3da7f93648f23b53ba36eb..ab79ae41ac11df6e1b861de09fd8d157c5a3041d 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -3009,6 +3009,13 @@ Node* CodeStubAssembler::IsSequentialStringInstanceType(Node* instance_type) { |
Int32Constant(kSeqStringTag)); |
} |
+Node* CodeStubAssembler::IsConsStringInstanceType(Node* instance_type) { |
+ CSA_ASSERT(this, IsStringInstanceType(instance_type)); |
+ return Word32Equal( |
+ Word32And(instance_type, Int32Constant(kStringRepresentationMask)), |
+ Int32Constant(kConsStringTag)); |
+} |
+ |
Node* CodeStubAssembler::IsExternalStringInstanceType(Node* instance_type) { |
CSA_ASSERT(this, IsStringInstanceType(instance_type)); |
return Word32Equal( |