| Index: src/mips64/assembler-mips64-inl.h
|
| diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h
|
| index 7903094cc0697667ecbb2ef0370033405a5a3295..82267edd0a8c0969a92fe18726775b91ad001e4a 100644
|
| --- a/src/mips64/assembler-mips64-inl.h
|
| +++ b/src/mips64/assembler-mips64-inl.h
|
| @@ -445,6 +445,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) {
|
| @@ -453,6 +455,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()) {
|
|
|