Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index a8b6cc7c32dc9d15a9e2f0e054bdc34f9d9bc32c..c276ba9066f5d6122b25ef22f9d37013468ce26b 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -285,10 +285,7 @@ Assembler::Assembler(Isolate* isolate, void* buffer, int buffer_size) |
void Assembler::GetCode(CodeDesc* desc) { |
- if (IsPrevInstrCompactBranch()) { |
- nop(); |
- ClearCompactBranchState(); |
- } |
+ EmitForbiddenSlotInstruction(); |
DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
// Set up code descriptor. |
desc->buffer = buffer_; |
@@ -302,10 +299,7 @@ void Assembler::GetCode(CodeDesc* desc) { |
void Assembler::Align(int m) { |
DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
- if (IsPrevInstrCompactBranch()) { |
- nop(); |
- ClearCompactBranchState(); |
- } |
+ EmitForbiddenSlotInstruction(); |
while ((pc_offset() & (m - 1)) != 0) { |
nop(); |
} |