| Index: src/mips/macro-assembler-mips.cc
|
| diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc
|
| index 9ba814ae2ff85887350cd57c7d0cbe739834f1a1..d81016374238fbefb9f88cde5e870f4d618704a9 100644
|
| --- a/src/mips/macro-assembler-mips.cc
|
| +++ b/src/mips/macro-assembler-mips.cc
|
| @@ -1,3 +1,4 @@
|
| +
|
| // Copyright 2012 the V8 project authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| @@ -4743,6 +4744,12 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
|
| }
|
|
|
|
|
| +void MacroAssembler::LoadGlobalProxy(Register dst) {
|
| + lw(dst, GlobalObjectOperand());
|
| + lw(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset));
|
| +}
|
| +
|
| +
|
| void MacroAssembler::LoadTransitionedArrayMapConditional(
|
| ElementsKind expected_kind,
|
| ElementsKind transitioned_kind,
|
| @@ -5168,6 +5175,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(ne, kOperandIsNotAFunction, object, Operand(JS_FUNCTION_TYPE));
|
| + }
|
| +}
|
| +
|
| +
|
| void MacroAssembler::AssertUndefinedOrAllocationSite(Register object,
|
| Register scratch) {
|
| if (emit_debug_code()) {
|
|
|