Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 4d599eef8d4186fbb1dfb7a780445ad8f8008a1b..2aab2e68782bd29b8cc8611824f4a5ea7e10a2e6 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2141,6 +2141,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { |
} |
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp, |
+ BuiltinFunctionId id, Label* miss) { |
+ mov(temp, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
+ mov(temp, FieldOperand(temp, SharedFunctionInfo::kFunctionDataOffset)); |
+ cmp(temp, Immediate(Smi::FromInt(id))); |
+ j(not_equal, miss); |
+} |
+ |
+ |
void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
if (context_chain_length > 0) { |
// Move up the chain of contexts to the context containing the slot. |