| Index: src/x87/macro-assembler-x87.cc
|
| diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
|
| index 0d5be068ee7cdbf31050f1a9a3e77b40ad2f9cc5..62588d9265ef3bdeb8fb20e52ee15028b3cea4ee 100644
|
| --- a/src/x87/macro-assembler-x87.cc
|
| +++ b/src/x87/macro-assembler-x87.cc
|
| @@ -1623,32 +1623,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.
|
| - mov(result,
|
| - FieldOperand(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.
|
| - cmp(result, Immediate(isolate()->factory()->the_hole_value()));
|
| - j(equal, miss);
|
| -
|
| - // If the function does not have an initial map, we're done.
|
| - Label done;
|
| - CmpObjectType(result, MAP_TYPE, scratch);
|
| - j(not_equal, &done, Label::kNear);
|
| -
|
| - // Get the prototype from the initial map.
|
| - mov(result, FieldOperand(result, Map::kPrototypeOffset));
|
| -
|
| - // All done.
|
| - bind(&done);
|
| -}
|
| -
|
| -
|
| void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id) {
|
| DCHECK(AllowThisStubCall(stub)); // Calls are not allowed in some stubs.
|
| call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id);
|
|
|