Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 12108a00404f5764727e272e69daa3d3adf10de3..2a719f540ed95c62f8cc41705f18c168ae97d2c1 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2589,6 +2589,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { |
} |
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp, |
+ BuiltinFunctionId id, Label* miss) { |
+ ldr(temp, FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
+ ldr(temp, FieldMemOperand(temp, SharedFunctionInfo::kFunctionDataOffset)); |
+ cmp(temp, Operand(Smi::FromInt(id))); |
+ b(ne, miss); |
+} |
+ |
+ |
void MacroAssembler::SetCounter(StatsCounter* counter, int value, |
Register scratch1, Register scratch2) { |
if (FLAG_native_code_counters && counter->Enabled()) { |