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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 // Use --trace-deopt to enable. | 1209 // Use --trace-deopt to enable. |
1210 void RecordDeoptReason(const int reason, int raw_position); | 1210 void RecordDeoptReason(const int reason, int raw_position); |
1211 | 1211 |
1212 // Writes a single byte or word of data in the code stream. Used | 1212 // Writes a single byte or word of data in the code stream. Used |
1213 // for inline tables, e.g., jump-tables. | 1213 // for inline tables, e.g., jump-tables. |
1214 void db(uint8_t data); | 1214 void db(uint8_t data); |
1215 void dd(uint32_t data); | 1215 void dd(uint32_t data); |
1216 void dq(uint64_t data); | 1216 void dq(uint64_t data); |
1217 void dp(uintptr_t data); | 1217 void dp(uintptr_t data); |
1218 | 1218 |
1219 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1219 AssemblerPositionsRecorder* positions_recorder() { |
| 1220 return &positions_recorder_; |
| 1221 } |
1220 | 1222 |
1221 // Read/patch instructions | 1223 // Read/patch instructions |
1222 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 1224 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
1223 void instr_at_put(int pos, Instr instr) { | 1225 void instr_at_put(int pos, Instr instr) { |
1224 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; | 1226 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; |
1225 } | 1227 } |
1226 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } | 1228 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } |
1227 static void instr_at_put(byte* pc, Instr instr) { | 1229 static void instr_at_put(byte* pc, Instr instr) { |
1228 *reinterpret_cast<Instr*>(pc) = instr; | 1230 *reinterpret_cast<Instr*>(pc) = instr; |
1229 } | 1231 } |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 static const int kMaxBlockTrampolineSectionSize = 64 * kInstrSize; | 1458 static const int kMaxBlockTrampolineSectionSize = 64 * kInstrSize; |
1457 static const int kInvalidSlotPos = -1; | 1459 static const int kInvalidSlotPos = -1; |
1458 | 1460 |
1459 Trampoline trampoline_; | 1461 Trampoline trampoline_; |
1460 bool internal_trampoline_exception_; | 1462 bool internal_trampoline_exception_; |
1461 | 1463 |
1462 friend class RegExpMacroAssemblerPPC; | 1464 friend class RegExpMacroAssemblerPPC; |
1463 friend class RelocInfo; | 1465 friend class RelocInfo; |
1464 friend class CodePatcher; | 1466 friend class CodePatcher; |
1465 friend class BlockTrampolinePoolScope; | 1467 friend class BlockTrampolinePoolScope; |
1466 PositionsRecorder positions_recorder_; | 1468 AssemblerPositionsRecorder positions_recorder_; |
1467 friend class PositionsRecorder; | 1469 friend class AssemblerPositionsRecorder; |
1468 friend class EnsureSpace; | 1470 friend class EnsureSpace; |
1469 }; | 1471 }; |
1470 | 1472 |
1471 | 1473 |
1472 class EnsureSpace BASE_EMBEDDED { | 1474 class EnsureSpace BASE_EMBEDDED { |
1473 public: | 1475 public: |
1474 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1476 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
1475 }; | 1477 }; |
1476 } // namespace internal | 1478 } // namespace internal |
1477 } // namespace v8 | 1479 } // namespace v8 |
1478 | 1480 |
1479 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1481 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
OLD | NEW |