Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index 2627dfe6318a5734eee5ac81c8a9ebe99ad227db..5f9522db386329e79ed08b49dc2d6f77d099f311 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -379,10 +379,9 @@ void Builtins::Generate_StringConstructor(MacroAssembler* masm) { |
__ Bind(&to_string); |
{ |
FrameScope scope(masm, StackFrame::MANUAL); |
- ToStringStub stub(masm->isolate()); |
__ SmiTag(x2); |
__ EnterBuiltinFrame(cp, x1, x2); |
- __ CallStub(&stub); |
+ __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); |
__ LeaveBuiltinFrame(cp, x1, x2); |
__ SmiUntag(x2); |
} |
@@ -442,12 +441,11 @@ void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
__ Bind(&convert); |
{ |
FrameScope scope(masm, StackFrame::MANUAL); |
- ToStringStub stub(masm->isolate()); |
__ SmiTag(x6); |
__ EnterBuiltinFrame(cp, x1, x6); |
__ Push(x3); |
__ Move(x0, x2); |
- __ CallStub(&stub); |
+ __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); |
__ Move(x2, x0); |
__ Pop(x3); |
__ LeaveBuiltinFrame(cp, x1, x6); |