Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 030a634ce93b614ada27cc52764ae3581199f5d6..8c0a15a384896ca0c045cbea1bf1c5a5ea5c8889 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -4602,6 +4602,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { |
} |
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp, |
+ BuiltinFunctionId id, Label* miss) { |
+ DCHECK(!temp.is(at)); |
+ lw(temp, FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
+ lw(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()) { |