| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1920 if (IsPrevInstrCompactBranch()) { | 1920 if (IsPrevInstrCompactBranch()) { |
| 1921 nop(); | 1921 nop(); |
| 1922 } | 1922 } |
| 1923 } | 1923 } |
| 1924 | 1924 |
| 1925 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); | 1925 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); |
| 1926 | 1926 |
| 1927 inline void CheckBuffer(); | 1927 inline void CheckBuffer(); |
| 1928 | 1928 |
| 1929 private: | 1929 private: |
| 1930 // Avoid overflows for displacements etc. |
| 1931 static const int kMaximalBufferSize = 512 * MB; |
| 1932 |
| 1930 inline static void set_target_internal_reference_encoded_at(Address pc, | 1933 inline static void set_target_internal_reference_encoded_at(Address pc, |
| 1931 Address target); | 1934 Address target); |
| 1932 | 1935 |
| 1933 // Buffer size and constant pool distance are checked together at regular | 1936 // Buffer size and constant pool distance are checked together at regular |
| 1934 // intervals of kBufferCheckInterval emitted bytes. | 1937 // intervals of kBufferCheckInterval emitted bytes. |
| 1935 static constexpr int kBufferCheckInterval = 1 * KB / 2; | 1938 static constexpr int kBufferCheckInterval = 1 * KB / 2; |
| 1936 | 1939 |
| 1937 // Code generation. | 1940 // Code generation. |
| 1938 // The relocation writer's position is at least kGap bytes below the end of | 1941 // The relocation writer's position is at least kGap bytes below the end of |
| 1939 // the generated instructions. This is so that multi-instruction sequences do | 1942 // the generated instructions. This is so that multi-instruction sequences do |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 public: | 2216 public: |
| 2214 explicit EnsureSpace(Assembler* assembler) { | 2217 explicit EnsureSpace(Assembler* assembler) { |
| 2215 assembler->CheckBuffer(); | 2218 assembler->CheckBuffer(); |
| 2216 } | 2219 } |
| 2217 }; | 2220 }; |
| 2218 | 2221 |
| 2219 } // namespace internal | 2222 } // namespace internal |
| 2220 } // namespace v8 | 2223 } // namespace v8 |
| 2221 | 2224 |
| 2222 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 2225 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |