Index: src/builtins/builtins-string.cc |
diff --git a/src/builtins/builtins-string.cc b/src/builtins/builtins-string.cc |
index 7faf22da2f07e22ad9ca2677020d39150d8fa9f4..d38f6b069d50f5e751d7dfb3147f602a25b2d4f6 100644 |
--- a/src/builtins/builtins-string.cc |
+++ b/src/builtins/builtins-string.cc |
@@ -51,11 +51,8 @@ void Builtins::Generate_StringFromCharCode(CodeStubAssembler* assembler) { |
assembler->Bind(&if_notoneargument); |
{ |
// Determine the resulting string length. |
- Node* parent_frame_length = |
- assembler->Load(MachineType::Pointer(), parent_frame_pointer, |
- assembler->IntPtrConstant( |
- ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- Node* length = assembler->SmiToWord(parent_frame_length); |
+ Node* length = assembler->LoadAndUntagSmi( |
+ parent_frame_pointer, ArgumentsAdaptorFrameConstants::kLengthOffset); |
// Assume that the resulting string contains only one-byte characters. |
Node* result = assembler->AllocateSeqOneByteString(context, length); |