diff options
Diffstat (limited to 'deps/v8/src/mips/assembler-mips.cc')
-rw-r--r-- | deps/v8/src/mips/assembler-mips.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/src/mips/assembler-mips.cc b/deps/v8/src/mips/assembler-mips.cc index a39c06eaa2..6365290f4c 100644 --- a/deps/v8/src/mips/assembler-mips.cc +++ b/deps/v8/src/mips/assembler-mips.cc @@ -183,11 +183,9 @@ Register ToRegister(int num) { // ----------------------------------------------------------------------------- // Implementation of RelocInfo. -const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | - 1 << RelocInfo::INTERNAL_REFERENCE | +const int RelocInfo::kApplyMask = 1 << RelocInfo::INTERNAL_REFERENCE | 1 << RelocInfo::INTERNAL_REFERENCE_ENCODED; - bool RelocInfo::IsCodedSpecially() { // The deserializer needs to know whether a pointer is specially coded. Being // specially coded on MIPS means that it is a lui/ori instruction, and that is @@ -3038,14 +3036,14 @@ void Assembler::cmp_d(FPUCondition cond, FPURegister fd, FPURegister fs, void Assembler::bc1eqz(int16_t offset, FPURegister ft) { DCHECK(IsMipsArchVariant(kMips32r6)); Instr instr = COP1 | BC1EQZ | ft.code() << kFtShift | (offset & kImm16Mask); - emit(instr); + emit(instr, CompactBranchType::COMPACT_BRANCH); } void Assembler::bc1nez(int16_t offset, FPURegister ft) { DCHECK(IsMipsArchVariant(kMips32r6)); Instr instr = COP1 | BC1NEZ | ft.code() << kFtShift | (offset & kImm16Mask); - emit(instr); + emit(instr, CompactBranchType::COMPACT_BRANCH); } @@ -3083,16 +3081,20 @@ void Assembler::fcmp(FPURegister src1, const double src2, void Assembler::bc1f(int16_t offset, uint16_t cc) { + BlockTrampolinePoolScope block_trampoline_pool(this); DCHECK(is_uint3(cc)); Instr instr = COP1 | BC1 | cc << 18 | 0 << 16 | (offset & kImm16Mask); emit(instr); + BlockTrampolinePoolFor(1); // For associated delay slot. } void Assembler::bc1t(int16_t offset, uint16_t cc) { + BlockTrampolinePoolScope block_trampoline_pool(this); DCHECK(is_uint3(cc)); Instr instr = COP1 | BC1 | cc << 18 | 1 << 16 | (offset & kImm16Mask); emit(instr); + BlockTrampolinePoolFor(1); // For associated delay slot. } // ---------- MSA instructions ------------ @@ -3666,7 +3668,7 @@ void Assembler::GrowBuffer() { // Some internal data structures overflow for very large buffers, // they must ensure that kMaximalBufferSize is not too large. if (desc.buffer_size > kMaximalBufferSize) { - V8::FatalProcessOutOfMemory("Assembler::GrowBuffer"); + V8::FatalProcessOutOfMemory(nullptr, "Assembler::GrowBuffer"); } // Set up new buffer. |