diff options
Diffstat (limited to 'deps/v8/src/mips/macro-assembler-mips.cc')
-rw-r--r-- | deps/v8/src/mips/macro-assembler-mips.cc | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/deps/v8/src/mips/macro-assembler-mips.cc b/deps/v8/src/mips/macro-assembler-mips.cc index 990b4995f5..7c085baac0 100644 --- a/deps/v8/src/mips/macro-assembler-mips.cc +++ b/deps/v8/src/mips/macro-assembler-mips.cc @@ -2088,10 +2088,12 @@ void MacroAssembler::CallWithAstId(Handle<Code> code, Condition cond, Register r1, const Operand& r2) { - ASSERT(rmode == RelocInfo::CODE_TARGET_WITH_ID); - ASSERT(ast_id != kNoASTId); - ASSERT(ast_id_for_reloc_info_ == kNoASTId); - ast_id_for_reloc_info_ = ast_id; + ASSERT(RelocInfo::IsCodeTarget(rmode)); + if (rmode == RelocInfo::CODE_TARGET && ast_id != kNoASTId) { + ASSERT(ast_id_for_reloc_info_ == kNoASTId); + ast_id_for_reloc_info_ = ast_id; + rmode = RelocInfo::CODE_TARGET_WITH_ID; + } Call(reinterpret_cast<intptr_t>(code.location()), rmode, cond, r1, r2); } @@ -3715,17 +3717,6 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { // cannot be allowed to destroy the context in esi). Move(dst, cp); } - - // We should not have found a 'with' context by walking the context chain - // (i.e., the static scope chain and runtime context chain do not agree). - // A variable occurring in such a scope should have slot type LOOKUP and - // not CONTEXT. - if (emit_debug_code()) { - lw(t9, MemOperand(dst, Context::SlotOffset(Context::FCONTEXT_INDEX))); - Check(eq, "Yo dawg, I heard you liked function contexts " - "so I put function contexts in all your contexts", - dst, Operand(t9)); - } } |