| 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 } | 1209 } |
| 1210 | 1210 |
| 1211 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } | 1211 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } |
| 1212 | 1212 |
| 1213 // Record a comment relocation entry that can be used by a disassembler. | 1213 // Record a comment relocation entry that can be used by a disassembler. |
| 1214 // Use --code-comments to enable. | 1214 // Use --code-comments to enable. |
| 1215 void RecordComment(const char* msg); | 1215 void RecordComment(const char* msg); |
| 1216 | 1216 |
| 1217 // Record a deoptimization reason that can be used by a log or cpu profiler. | 1217 // Record a deoptimization reason that can be used by a log or cpu profiler. |
| 1218 // Use --trace-deopt to enable. | 1218 // Use --trace-deopt to enable. |
| 1219 void RecordDeoptReason(DeoptimizeReason reason, int raw_position, int id); | 1219 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position, |
| 1220 int id); |
| 1220 | 1221 |
| 1221 // Writes a single byte or word of data in the code stream. Used | 1222 // Writes a single byte or word of data in the code stream. Used |
| 1222 // for inline tables, e.g., jump-tables. | 1223 // for inline tables, e.g., jump-tables. |
| 1223 void db(uint8_t data); | 1224 void db(uint8_t data); |
| 1224 void dd(uint32_t data); | 1225 void dd(uint32_t data); |
| 1225 void dq(uint64_t data); | 1226 void dq(uint64_t data); |
| 1226 void dp(uintptr_t data); | 1227 void dp(uintptr_t data); |
| 1227 | 1228 |
| 1228 // Read/patch instructions | 1229 // Read/patch instructions |
| 1229 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 1230 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 | 1476 |
| 1476 | 1477 |
| 1477 class EnsureSpace BASE_EMBEDDED { | 1478 class EnsureSpace BASE_EMBEDDED { |
| 1478 public: | 1479 public: |
| 1479 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1480 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 1480 }; | 1481 }; |
| 1481 } // namespace internal | 1482 } // namespace internal |
| 1482 } // namespace v8 | 1483 } // namespace v8 |
| 1483 | 1484 |
| 1484 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1485 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
| OLD | NEW |