Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index c70a20a8fdf75fc1714ca9595351b056880349cc..a0ebbf92a5419b7076bf8e50c611a9ada6132679 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -2591,8 +2591,7 @@ void NonNumberToNumberStub::Generate(MacroAssembler* masm) { |
__ CompareObjectType(r3, r4, r4, FIRST_NONSTRING_TYPE); |
// r3: receiver |
// r4: receiver instance type |
- StringToNumberStub stub(masm->isolate()); |
- __ TailCallStub(&stub, lt); |
+ __ Jump(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET, lt); |
Label not_oddball; |
__ cmpi(r4, Operand(ODDBALL_TYPE)); |
@@ -2605,23 +2604,6 @@ void NonNumberToNumberStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kToNumber); |
} |
-void StringToNumberStub::Generate(MacroAssembler* masm) { |
- // The StringToNumber stub takes one argument in r3. |
- __ AssertString(r3); |
- |
- // Check if string has a cached array index. |
- Label runtime; |
- __ lwz(r5, FieldMemOperand(r3, String::kHashFieldOffset)); |
- __ And(r0, r5, Operand(String::kContainsCachedArrayIndexMask), SetRC); |
- __ bne(&runtime, cr0); |
- __ IndexFromHash(r5, r3); |
- __ blr(); |
- |
- __ bind(&runtime); |
- __ push(r3); // Push argument. |
- __ TailCallRuntime(Runtime::kStringToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in r3. |
Label is_number; |