Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 0e70826df2297d003f28c3de27577394fd9b57a2..e6a06dbc08b5220b3230eed33de09cec662ac56b 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -733,6 +733,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { |
} |
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp, |
+ BuiltinFunctionId id, Label* miss) { |
+ movp(temp, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
+ movp(temp, FieldOperand(temp, SharedFunctionInfo::kFunctionDataOffset)); |
+ Cmp(temp, Smi::FromInt(id)); |
+ j(not_equal, miss); |
+} |
+ |
+ |
#define REG(Name) { kRegister_ ## Name ## _Code } |
static const Register saved_regs[] = { |