Index: src/arm/assembler-arm.h |
diff --git a/src/arm/assembler-arm.h b/src/arm/assembler-arm.h |
index bc81f31729093de65556273654c4e65a625829ea..9f5d007ba6c7468b525dfbb88320b262ff0f5709 100644 |
--- a/src/arm/assembler-arm.h |
+++ b/src/arm/assembler-arm.h |
@@ -1723,6 +1723,9 @@ class Assembler : public AssemblerBase { |
std::vector<ConstantPoolEntry> pending_64_bit_constants_; |
private: |
+ // Avoid overflows for displacements etc. |
+ static const int kMaximalBufferSize = 512 * MB; |
+ |
int next_buffer_check_; // pc offset of next buffer check |
// Constant pool generation |