| Index: src/ppc/macro-assembler-ppc.cc
|
| diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
|
| index 81f25c2dd705e11fed9123db6caa5952ba990ef6..1dfed3e6fd117cfea9afd21a96aea3728a71e174 100644
|
| --- a/src/ppc/macro-assembler-ppc.cc
|
| +++ b/src/ppc/macro-assembler-ppc.cc
|
| @@ -2147,33 +2147,6 @@ void MacroAssembler::GetMapConstructor(Register result, Register map,
|
| bind(&done);
|
| }
|
|
|
| -
|
| -void MacroAssembler::TryGetFunctionPrototype(Register function, Register result,
|
| - Register scratch, Label* miss) {
|
| - // Get the prototype or initial map from the function.
|
| - LoadP(result,
|
| - FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
|
| -
|
| - // If the prototype or initial map is the hole, don't return it and
|
| - // simply miss the cache instead. This will allow us to allocate a
|
| - // prototype object on-demand in the runtime system.
|
| - LoadRoot(r0, Heap::kTheHoleValueRootIndex);
|
| - cmp(result, r0);
|
| - beq(miss);
|
| -
|
| - // If the function does not have an initial map, we're done.
|
| - Label done;
|
| - CompareObjectType(result, scratch, scratch, MAP_TYPE);
|
| - bne(&done);
|
| -
|
| - // Get the prototype from the initial map.
|
| - LoadP(result, FieldMemOperand(result, Map::kPrototypeOffset));
|
| -
|
| - // All done.
|
| - bind(&done);
|
| -}
|
| -
|
| -
|
| void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id,
|
| Condition cond) {
|
| DCHECK(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs.
|
|
|