Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index c67d955a897e4dfc67623626f334f02f3b92f279..884cbab0efb62ad660e1fb749566406b2ff595f4 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -3394,6 +3394,18 @@ void MacroAssembler::AssertName(Register object) { |
} |
+void MacroAssembler::AssertFunction(Register object) { |
+ if (emit_debug_code()) { |
+ testb(object, Immediate(kSmiTagMask)); |
+ Check(not_equal, kOperandIsASmiAndNotAFunction); |
+ Push(object); |
+ CmpObjectType(object, JS_FUNCTION_TYPE, object); |
+ Pop(object); |
+ Check(equal, kOperandIsNotAFunction); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object) { |
if (emit_debug_code()) { |
Label done_checking; |
@@ -4543,6 +4555,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
} |
+void MacroAssembler::LoadGlobalProxy(Register dst) { |
+ movp(dst, GlobalObjectOperand()); |
+ movp(dst, FieldOperand(dst, GlobalObject::kGlobalProxyOffset)); |
+} |
+ |
+ |
void MacroAssembler::LoadTransitionedArrayMapConditional( |
ElementsKind expected_kind, |
ElementsKind transitioned_kind, |