| Index: src/mips/macro-assembler-mips.cc
|
| ===================================================================
|
| --- src/mips/macro-assembler-mips.cc (revision 8492)
|
| +++ src/mips/macro-assembler-mips.cc (working copy)
|
| @@ -2088,10 +2088,12 @@
|
| 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);
|
| }
|
|
|
|
|