| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 rs_.is(no_reg) && | 425 rs_.is(no_reg) && |
| 426 shift_op_ == LSL && | 426 shift_op_ == LSL && |
| 427 shift_imm_ == 0; | 427 shift_imm_ == 0; |
| 428 } | 428 } |
| 429 | 429 |
| 430 | 430 |
| 431 void Assembler::CheckBuffer() { | 431 void Assembler::CheckBuffer() { |
| 432 if (buffer_space() <= kGap) { | 432 if (buffer_space() <= kGap) { |
| 433 GrowBuffer(); | 433 GrowBuffer(); |
| 434 } | 434 } |
| 435 if (pc_offset() >= next_buffer_check_) { | 435 MaybeCheckConstPool(); |
| 436 CheckConstPool(false, true); | |
| 437 } | |
| 438 } | 436 } |
| 439 | 437 |
| 440 | 438 |
| 441 void Assembler::emit(Instr x) { | 439 void Assembler::emit(Instr x) { |
| 442 CheckBuffer(); | 440 CheckBuffer(); |
| 443 *reinterpret_cast<Instr*>(pc_) = x; | 441 *reinterpret_cast<Instr*>(pc_) = x; |
| 444 pc_ += kInstrSize; | 442 pc_ += kInstrSize; |
| 445 } | 443 } |
| 446 | 444 |
| 447 | 445 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 692 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 695 CpuFeatures::FlushICache(pc, 4 * kInstrSize); | 693 CpuFeatures::FlushICache(pc, 4 * kInstrSize); |
| 696 } | 694 } |
| 697 } | 695 } |
| 698 } | 696 } |
| 699 | 697 |
| 700 | 698 |
| 701 } } // namespace v8::internal | 699 } } // namespace v8::internal |
| 702 | 700 |
| 703 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 701 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |