Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index d2b1742623195775e182b76cfa1ead3ffde8f462..090fc6ec19fbd076aa3cc22e93a33710202d6a05 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -116,6 +116,12 @@ void MacroAssembler::CompareRoot(const Operand& with, |
} |
+void MacroAssembler::PushRoot(Heap::RootListIndex index) { |
+ DCHECK(isolate()->heap()->RootCanBeTreatedAsConstant(index)); |
+ Push(isolate()->heap()->root_handle(index)); |
+} |
+ |
+ |
void MacroAssembler::InNewSpace( |
Register object, |
Register scratch, |
@@ -776,6 +782,18 @@ void MacroAssembler::AssertName(Register object) { |
} |
+void MacroAssembler::AssertFunction(Register object) { |
+ if (emit_debug_code()) { |
+ test(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; |
@@ -2062,6 +2080,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
} |
+void MacroAssembler::LoadGlobalProxy(Register dst) { |
+ mov(dst, GlobalObjectOperand()); |
+ mov(dst, FieldOperand(dst, GlobalObject::kGlobalProxyOffset)); |
+} |
+ |
+ |
void MacroAssembler::LoadTransitionedArrayMapConditional( |
ElementsKind expected_kind, |
ElementsKind transitioned_kind, |