Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 88477bb7f06c713baad520d67961827ae5e3d440..613a1f69f13a8923878b7e5b089d3de96a303d9d 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -1725,6 +1725,46 @@ void MacroAssembler::AllocateAsciiConsString(Register result, |
} |
+void MacroAssembler::AllocateTwoByteSlicedString(Register result, |
+ Register length, |
+ Register scratch1, |
+ Register scratch2, |
+ Label* gc_required) { |
+ AllocateInNewSpace(SlicedString::kSize, |
+ result, |
+ scratch1, |
+ scratch2, |
+ gc_required, |
+ TAG_OBJECT); |
+ |
+ InitializeNewString(result, |
+ length, |
+ Heap::kSlicedStringMapRootIndex, |
+ scratch1, |
+ scratch2); |
+} |
+ |
+ |
+void MacroAssembler::AllocateAsciiSlicedString(Register result, |
+ Register length, |
+ Register scratch1, |
+ Register scratch2, |
+ Label* gc_required) { |
+ AllocateInNewSpace(SlicedString::kSize, |
+ result, |
+ scratch1, |
+ scratch2, |
+ gc_required, |
+ TAG_OBJECT); |
+ |
+ InitializeNewString(result, |
+ length, |
+ Heap::kSlicedAsciiStringMapRootIndex, |
+ scratch1, |
+ scratch2); |
+} |
+ |
+ |
void MacroAssembler::CompareObjectType(Register object, |
Register map, |
Register type_reg, |