| 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 void c(FPUCondition cond, SecondaryField fmt, | 772 void c(FPUCondition cond, SecondaryField fmt, |
| 773 FPURegister ft, FPURegister fs, uint16_t cc = 0); | 773 FPURegister ft, FPURegister fs, uint16_t cc = 0); |
| 774 | 774 |
| 775 void bc1f(int16_t offset, uint16_t cc = 0); | 775 void bc1f(int16_t offset, uint16_t cc = 0); |
| 776 void bc1f(Label* L, uint16_t cc = 0) { bc1f(branch_offset(L, false)>>2, cc); } | 776 void bc1f(Label* L, uint16_t cc = 0) { bc1f(branch_offset(L, false)>>2, cc); } |
| 777 void bc1t(int16_t offset, uint16_t cc = 0); | 777 void bc1t(int16_t offset, uint16_t cc = 0); |
| 778 void bc1t(Label* L, uint16_t cc = 0) { bc1t(branch_offset(L, false)>>2, cc); } | 778 void bc1t(Label* L, uint16_t cc = 0) { bc1t(branch_offset(L, false)>>2, cc); } |
| 779 void fcmp(FPURegister src1, const double src2, FPUCondition cond); | 779 void fcmp(FPURegister src1, const double src2, FPUCondition cond); |
| 780 | 780 |
| 781 // Check the code size generated from label to here. | 781 // Check the code size generated from label to here. |
| 782 int InstructionsGeneratedSince(Label* l) { | 782 int SizeOfCodeGeneratedSince(Label* label) { |
| 783 return (pc_offset() - l->pos()) / kInstrSize; | 783 return pc_offset() - label->pos(); |
| 784 } |
| 785 |
| 786 // Check the number of instructions generated from label to here. |
| 787 int InstructionsGeneratedSince(Label* label) { |
| 788 return SizeOfCodeGeneratedSince(label) / kInstrSize; |
| 784 } | 789 } |
| 785 | 790 |
| 786 // Class for scoping postponing the trampoline pool generation. | 791 // Class for scoping postponing the trampoline pool generation. |
| 787 class BlockTrampolinePoolScope { | 792 class BlockTrampolinePoolScope { |
| 788 public: | 793 public: |
| 789 explicit BlockTrampolinePoolScope(Assembler* assem) : assem_(assem) { | 794 explicit BlockTrampolinePoolScope(Assembler* assem) : assem_(assem) { |
| 790 assem_->StartBlockTrampolinePool(); | 795 assem_->StartBlockTrampolinePool(); |
| 791 } | 796 } |
| 792 ~BlockTrampolinePoolScope() { | 797 ~BlockTrampolinePoolScope() { |
| 793 assem_->EndBlockTrampolinePool(); | 798 assem_->EndBlockTrampolinePool(); |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 class EnsureSpace BASE_EMBEDDED { | 1186 class EnsureSpace BASE_EMBEDDED { |
| 1182 public: | 1187 public: |
| 1183 explicit EnsureSpace(Assembler* assembler) { | 1188 explicit EnsureSpace(Assembler* assembler) { |
| 1184 assembler->CheckBuffer(); | 1189 assembler->CheckBuffer(); |
| 1185 } | 1190 } |
| 1186 }; | 1191 }; |
| 1187 | 1192 |
| 1188 } } // namespace v8::internal | 1193 } } // namespace v8::internal |
| 1189 | 1194 |
| 1190 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1195 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |