| 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 static const int kMaxRelocSize = RelocInfoWriter::kMaxSize; | 1291 static const int kMaxRelocSize = RelocInfoWriter::kMaxSize; |
| 1292 RelocInfoWriter reloc_info_writer; | 1292 RelocInfoWriter reloc_info_writer; |
| 1293 | 1293 |
| 1294 // The bound position, before this we cannot do instruction elimination. | 1294 // The bound position, before this we cannot do instruction elimination. |
| 1295 int last_bound_pos_; | 1295 int last_bound_pos_; |
| 1296 | 1296 |
| 1297 // Code emission. | 1297 // Code emission. |
| 1298 inline void CheckBuffer(); | 1298 inline void CheckBuffer(); |
| 1299 void GrowBuffer(); | 1299 void GrowBuffer(); |
| 1300 inline void emit(Instr x); | 1300 inline void emit(Instr x); |
| 1301 inline void CheckTrampolinePoolQuick(); | 1301 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); |
| 1302 | 1302 |
| 1303 // Instruction generation. | 1303 // Instruction generation. |
| 1304 // We have 3 different kind of encoding layout on MIPS. | 1304 // We have 3 different kind of encoding layout on MIPS. |
| 1305 // However due to many different types of objects encoded in the same fields | 1305 // However due to many different types of objects encoded in the same fields |
| 1306 // we have quite a few aliases for each mode. | 1306 // we have quite a few aliases for each mode. |
| 1307 // Using the same structure to refer to Register and FPURegister would spare a | 1307 // Using the same structure to refer to Register and FPURegister would spare a |
| 1308 // few aliases, but mixing both does not look clean to me. | 1308 // few aliases, but mixing both does not look clean to me. |
| 1309 // Anyway we could surely implement this differently. | 1309 // Anyway we could surely implement this differently. |
| 1310 | 1310 |
| 1311 void GenInstrRegister(Opcode opcode, | 1311 void GenInstrRegister(Opcode opcode, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 class EnsureSpace BASE_EMBEDDED { | 1461 class EnsureSpace BASE_EMBEDDED { |
| 1462 public: | 1462 public: |
| 1463 explicit EnsureSpace(Assembler* assembler) { | 1463 explicit EnsureSpace(Assembler* assembler) { |
| 1464 assembler->CheckBuffer(); | 1464 assembler->CheckBuffer(); |
| 1465 } | 1465 } |
| 1466 }; | 1466 }; |
| 1467 | 1467 |
| 1468 } } // namespace v8::internal | 1468 } } // namespace v8::internal |
| 1469 | 1469 |
| 1470 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1470 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |