| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index b05384d05257068bead0af1cc966fe4bd77cb379..96c81609be937fb1fda59a51dbccb9ec837e5a38 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.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,
|
| @@ -804,6 +810,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;
|
| @@ -2097,6 +2115,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,
|
|
|