Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index b463c0b12c33996144e428e46aa157cb9eb2a99b..57aea3898c86da2a269740c6cf512c6adf993f52 100644 |
--- a/src/mips/assembler-mips-inl.h |
+++ b/src/mips/assembler-mips-inl.h |
@@ -463,6 +463,8 @@ void Assembler::EmitHelper(Instr x, CompactBranchType is_compact_branch) { |
CheckTrampolinePoolQuick(); |
} |
+template <> |
+inline void Assembler::EmitHelper(uint8_t x); |
template <typename T> |
void Assembler::EmitHelper(T x) { |
@@ -471,6 +473,14 @@ void Assembler::EmitHelper(T x) { |
CheckTrampolinePoolQuick(); |
} |
+template <> |
+void Assembler::EmitHelper(uint8_t x) { |
+ *reinterpret_cast<uint8_t*>(pc_) = x; |
+ pc_ += sizeof(x); |
+ if (reinterpret_cast<intptr_t>(pc_) % kInstrSize == 0) { |
+ CheckTrampolinePoolQuick(); |
+ } |
+} |
void Assembler::emit(Instr x, CompactBranchType is_compact_branch) { |
if (!is_buffer_growth_blocked()) { |