Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 006f15b967db2067bedc0142bc3848ca6213e499..325c0feea1d8bd90a44c03dcff3a9aeb5aad425c 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -4273,34 +4273,8 @@ void MacroAssembler::GetMapConstructor(Register result, Register map, |
} |
-void MacroAssembler::TryGetFunctionPrototype(Register function, |
- Register result, |
- Register scratch, |
- Label* miss, |
- bool miss_on_bound_function) { |
- Label non_instance; |
- if (miss_on_bound_function) { |
- // Check that the receiver isn't a smi. |
- JumpIfSmi(function, miss); |
- |
- // Check that the function really is a function. Load map into result reg. |
- GetObjectType(function, result, scratch); |
- Branch(miss, ne, scratch, Operand(JS_FUNCTION_TYPE)); |
- |
- ld(scratch, |
- FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
- lwu(scratch, |
- FieldMemOperand(scratch, SharedFunctionInfo::kCompilerHintsOffset)); |
- And(scratch, scratch, |
- Operand(1 << SharedFunctionInfo::kBoundFunction)); |
- Branch(miss, ne, scratch, Operand(zero_reg)); |
- |
- // Make sure that the function has an instance prototype. |
- lbu(scratch, FieldMemOperand(result, Map::kBitFieldOffset)); |
- And(scratch, scratch, Operand(1 << Map::kHasNonInstancePrototype)); |
- Branch(&non_instance, ne, scratch, Operand(zero_reg)); |
- } |
- |
+void MacroAssembler::TryGetFunctionPrototype(Register function, Register result, |
+ Register scratch, Label* miss) { |
// Get the prototype or initial map from the function. |
ld(result, |
FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); |
@@ -4319,15 +4293,6 @@ void MacroAssembler::TryGetFunctionPrototype(Register function, |
// Get the prototype from the initial map. |
ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); |
- if (miss_on_bound_function) { |
- jmp(&done); |
- |
- // Non-instance prototype: Fetch prototype from constructor field |
- // in initial map. |
- bind(&non_instance); |
- GetMapConstructor(result, result, scratch, scratch); |
- } |
- |
// All done. |
bind(&done); |
} |