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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 RelocInfoWriter reloc_info_writer; | 1281 RelocInfoWriter reloc_info_writer; |
1282 | 1282 |
1283 // The bound position, before this we cannot do instruction elimination. | 1283 // The bound position, before this we cannot do instruction elimination. |
1284 int last_bound_pos_; | 1284 int last_bound_pos_; |
1285 | 1285 |
1286 // Code emission. | 1286 // Code emission. |
1287 inline void CheckBuffer(); | 1287 inline void CheckBuffer(); |
1288 void GrowBuffer(); | 1288 void GrowBuffer(); |
1289 inline void emit(Instr x); | 1289 inline void emit(Instr x); |
1290 inline void emit(uint64_t x); | 1290 inline void emit(uint64_t x); |
1291 inline void CheckTrampolinePoolQuick(); | 1291 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); |
1292 | 1292 |
1293 // Instruction generation. | 1293 // Instruction generation. |
1294 // We have 3 different kind of encoding layout on MIPS. | 1294 // We have 3 different kind of encoding layout on MIPS. |
1295 // However due to many different types of objects encoded in the same fields | 1295 // However due to many different types of objects encoded in the same fields |
1296 // we have quite a few aliases for each mode. | 1296 // we have quite a few aliases for each mode. |
1297 // Using the same structure to refer to Register and FPURegister would spare a | 1297 // Using the same structure to refer to Register and FPURegister would spare a |
1298 // few aliases, but mixing both does not look clean to me. | 1298 // few aliases, but mixing both does not look clean to me. |
1299 // Anyway we could surely implement this differently. | 1299 // Anyway we could surely implement this differently. |
1300 | 1300 |
1301 void GenInstrRegister(Opcode opcode, | 1301 void GenInstrRegister(Opcode opcode, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 class EnsureSpace BASE_EMBEDDED { | 1449 class EnsureSpace BASE_EMBEDDED { |
1450 public: | 1450 public: |
1451 explicit EnsureSpace(Assembler* assembler) { | 1451 explicit EnsureSpace(Assembler* assembler) { |
1452 assembler->CheckBuffer(); | 1452 assembler->CheckBuffer(); |
1453 } | 1453 } |
1454 }; | 1454 }; |
1455 | 1455 |
1456 } } // namespace v8::internal | 1456 } } // namespace v8::internal |
1457 | 1457 |
1458 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1458 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |