| Index: src/mips64/macro-assembler-mips64.cc
|
| diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
|
| index a379d847ae597d4e6afe2600ef1b44b39aa89dd8..d1f8bf396e2dc93ca5eb71fb59f33101a4f30b14 100644
|
| --- a/src/mips64/macro-assembler-mips64.cc
|
| +++ b/src/mips64/macro-assembler-mips64.cc
|
| @@ -4874,6 +4874,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
|
| }
|
|
|
|
|
| +void MacroAssembler::LoadGlobalProxy(Register dst) {
|
| + ld(dst, GlobalObjectOperand());
|
| + ld(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset));
|
| +}
|
| +
|
| +
|
| void MacroAssembler::LoadTransitionedArrayMapConditional(
|
| ElementsKind expected_kind,
|
| ElementsKind transitioned_kind,
|
| @@ -5367,6 +5373,19 @@ void MacroAssembler::AssertName(Register object) {
|
| }
|
|
|
|
|
| +void MacroAssembler::AssertFunction(Register object) {
|
| + if (emit_debug_code()) {
|
| + STATIC_ASSERT(kSmiTag == 0);
|
| + SmiTst(object, t0);
|
| + Check(ne, kOperandIsASmiAndNotAFunction, t0, Operand(zero_reg));
|
| + push(object);
|
| + GetObjectType(object, object, object);
|
| + pop(object);
|
| + Check(eq, kOperandIsNotAFunction, object, Operand(JS_FUNCTION_TYPE));
|
| + }
|
| +}
|
| +
|
| +
|
| void MacroAssembler::AssertUndefinedOrAllocationSite(Register object,
|
| Register scratch) {
|
| if (emit_debug_code()) {
|
|
|