Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 057a59cf522fbf89e334d1d618c8c19bb136fccd..3f0ff1aa11da999f622eee4e83d2e6fa2a3e8180 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2641,6 +2641,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
} |
+void MacroAssembler::LoadGlobalProxy(Register dst) { |
+ ldr(dst, GlobalObjectOperand()); |
+ ldr(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset)); |
+} |
+ |
+ |
void MacroAssembler::LoadTransitionedArrayMapConditional( |
ElementsKind expected_kind, |
ElementsKind transitioned_kind, |
@@ -2802,6 +2808,19 @@ void MacroAssembler::AssertName(Register object) { |
} |
+void MacroAssembler::AssertFunction(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ tst(object, Operand(kSmiTagMask)); |
+ Check(ne, kOperandIsASmiAndNotAFunction); |
+ push(object); |
+ CompareObjectType(object, object, object, JS_FUNCTION_TYPE); |
+ pop(object); |
+ Check(eq, kOperandIsNotAFunction); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |