Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 0e7955de00d4be4d9b81802bc2ba5e8f6ab80f8b..89ed2cd88a4f586ac00ab9fb19e9e320e00d4d03 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -4576,6 +4576,14 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { |
} |
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp, |
+ BuiltinFunctionId id, Label* miss) { |
+ ld(temp, FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
+ ld(temp, FieldMemOperand(temp, SharedFunctionInfo::kFunctionDataOffset)); |
+ Branch(miss, ne, temp, Operand(Smi::FromInt(id))); |
+} |
+ |
+ |
void MacroAssembler::SetCounter(StatsCounter* counter, int value, |
Register scratch1, Register scratch2) { |
if (FLAG_native_code_counters && counter->Enabled()) { |