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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 } | 1304 } |
1305 | 1305 |
1306 // Check the number of instructions generated from label to here. | 1306 // Check the number of instructions generated from label to here. |
1307 int InstructionsGeneratedSince(Label* label) { | 1307 int InstructionsGeneratedSince(Label* label) { |
1308 return SizeOfCodeGeneratedSince(label) / kInstrSize; | 1308 return SizeOfCodeGeneratedSince(label) / kInstrSize; |
1309 } | 1309 } |
1310 | 1310 |
1311 // Check whether an immediate fits an addressing mode 1 instruction. | 1311 // Check whether an immediate fits an addressing mode 1 instruction. |
1312 bool ImmediateFitsAddrMode1Instruction(int32_t imm32); | 1312 bool ImmediateFitsAddrMode1Instruction(int32_t imm32); |
1313 | 1313 |
| 1314 // Check whether an immediate fits an addressing mode 2 instruction. |
| 1315 bool ImmediateFitsAddrMode2Instruction(int32_t imm32); |
| 1316 |
1314 // Class for scoping postponing the constant pool generation. | 1317 // Class for scoping postponing the constant pool generation. |
1315 class BlockConstPoolScope { | 1318 class BlockConstPoolScope { |
1316 public: | 1319 public: |
1317 explicit BlockConstPoolScope(Assembler* assem) : assem_(assem) { | 1320 explicit BlockConstPoolScope(Assembler* assem) : assem_(assem) { |
1318 assem_->StartBlockConstPool(); | 1321 assem_->StartBlockConstPool(); |
1319 } | 1322 } |
1320 ~BlockConstPoolScope() { | 1323 ~BlockConstPoolScope() { |
1321 assem_->EndBlockConstPool(); | 1324 assem_->EndBlockConstPool(); |
1322 } | 1325 } |
1323 | 1326 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 public: | 1607 public: |
1605 explicit EnsureSpace(Assembler* assembler) { | 1608 explicit EnsureSpace(Assembler* assembler) { |
1606 assembler->CheckBuffer(); | 1609 assembler->CheckBuffer(); |
1607 } | 1610 } |
1608 }; | 1611 }; |
1609 | 1612 |
1610 | 1613 |
1611 } } // namespace v8::internal | 1614 } } // namespace v8::internal |
1612 | 1615 |
1613 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1616 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |