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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 block_buffer_growth_ = false; | 1265 block_buffer_growth_ = false; |
1266 } | 1266 } |
1267 | 1267 |
1268 bool is_buffer_growth_blocked() const { | 1268 bool is_buffer_growth_blocked() const { |
1269 return block_buffer_growth_; | 1269 return block_buffer_growth_; |
1270 } | 1270 } |
1271 | 1271 |
1272 void EmitForbiddenSlotInstruction() { | 1272 void EmitForbiddenSlotInstruction() { |
1273 if (IsPrevInstrCompactBranch()) { | 1273 if (IsPrevInstrCompactBranch()) { |
1274 nop(); | 1274 nop(); |
1275 ClearCompactBranchState(); | |
1276 } | 1275 } |
1277 } | 1276 } |
1278 | 1277 |
1279 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); | 1278 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); |
1280 | 1279 |
1281 private: | 1280 private: |
1282 // Buffer size and constant pool distance are checked together at regular | 1281 // Buffer size and constant pool distance are checked together at regular |
1283 // intervals of kBufferCheckInterval emitted bytes. | 1282 // intervals of kBufferCheckInterval emitted bytes. |
1284 static const int kBufferCheckInterval = 1*KB/2; | 1283 static const int kBufferCheckInterval = 1*KB/2; |
1285 | 1284 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 public: | 1498 public: |
1500 explicit EnsureSpace(Assembler* assembler) { | 1499 explicit EnsureSpace(Assembler* assembler) { |
1501 assembler->CheckBuffer(); | 1500 assembler->CheckBuffer(); |
1502 } | 1501 } |
1503 }; | 1502 }; |
1504 | 1503 |
1505 } // namespace internal | 1504 } // namespace internal |
1506 } // namespace v8 | 1505 } // namespace v8 |
1507 | 1506 |
1508 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1507 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |