Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 16cdf4a5315a04882cd18c6dfc092386fedb1f4d..75814e83a866396c66b89cb601fa2a02e6bf16d1 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1613,6 +1613,19 @@ void MacroAssembler::AssertName(Register object) { |
} |
+void MacroAssembler::AssertFunction(Register object) { |
+ if (emit_debug_code()) { |
+ AssertNotSmi(object, kOperandIsASmiAndNotAFunction); |
+ |
+ UseScratchRegisterScope temps(this); |
+ Register temp = temps.AcquireX(); |
+ |
+ CompareObjectType(object, temp, temp, JS_FUNCTION_TYPE); |
+ Check(eq, kOperandIsNotAFunction); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |
@@ -3045,6 +3058,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
} |
+void MacroAssembler::LoadGlobalProxy(Register dst) { |
+ Ldr(dst, GlobalObjectMemOperand()); |
+ Ldr(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset)); |
+} |
+ |
+ |
void MacroAssembler::DebugBreak() { |
Mov(x0, 0); |
Mov(x1, ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); |