Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 07e237e0b498906361f9103c19990dee78ff4dc7..52cc3fdd4ebd379a3dda8080e155e216841286f0 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1689,6 +1689,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, |
} |
+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::InvokeBuiltin(Builtins::JavaScript id, |
InvokeFlag flag, |
const CallWrapper& call_wrapper) { |