| 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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 // The parameter indicates the size of the constant pool (in bytes), including | 1420 // The parameter indicates the size of the constant pool (in bytes), including |
| 1421 // the marker and branch over the data. | 1421 // the marker and branch over the data. |
| 1422 void RecordConstPool(int size); | 1422 void RecordConstPool(int size); |
| 1423 | 1423 |
| 1424 // Writes a single byte or word of data in the code stream. Used | 1424 // Writes a single byte or word of data in the code stream. Used |
| 1425 // for inline tables, e.g., jump-tables. The constant pool should be | 1425 // for inline tables, e.g., jump-tables. The constant pool should be |
| 1426 // emitted before any use of db and dd to ensure that constant pools | 1426 // emitted before any use of db and dd to ensure that constant pools |
| 1427 // are not emitted as part of the tables generated. | 1427 // are not emitted as part of the tables generated. |
| 1428 void db(uint8_t data); | 1428 void db(uint8_t data); |
| 1429 void dd(uint32_t data); | 1429 void dd(uint32_t data); |
| 1430 void dd(Label* label); |
| 1430 | 1431 |
| 1431 // Emits the address of the code stub's first instruction. | 1432 // Emits the address of the code stub's first instruction. |
| 1432 void emit_code_stub_address(Code* stub); | 1433 void emit_code_stub_address(Code* stub); |
| 1433 | 1434 |
| 1434 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1435 PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
| 1435 | 1436 |
| 1436 // Read/patch instructions | 1437 // Read/patch instructions |
| 1437 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 1438 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
| 1438 void instr_at_put(int pos, Instr instr) { | 1439 void instr_at_put(int pos, Instr instr) { |
| 1439 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; | 1440 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 public: | 1681 public: |
| 1681 explicit EnsureSpace(Assembler* assembler) { | 1682 explicit EnsureSpace(Assembler* assembler) { |
| 1682 assembler->CheckBuffer(); | 1683 assembler->CheckBuffer(); |
| 1683 } | 1684 } |
| 1684 }; | 1685 }; |
| 1685 | 1686 |
| 1686 | 1687 |
| 1687 } } // namespace v8::internal | 1688 } } // namespace v8::internal |
| 1688 | 1689 |
| 1689 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1690 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
| OLD | NEW |