Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index e4b60c1d244676488a9b8bc11e759de3595e2e4e..7df318b9ab7c1c7d21f9c7cc082148a6390bb91b 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -1927,6 +1927,9 @@ class Assembler : public AssemblerBase { |
inline void CheckBuffer(); |
private: |
+ // Avoid overflows for displacements etc. |
+ static const int kMaximalBufferSize = 512 * MB; |
+ |
inline static void set_target_internal_reference_encoded_at(Address pc, |
Address target); |