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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 // The parameter indicates the size of the constant pool (in bytes), including | 1448 // The parameter indicates the size of the constant pool (in bytes), including |
1449 // the marker and branch over the data. | 1449 // the marker and branch over the data. |
1450 void RecordConstPool(int size); | 1450 void RecordConstPool(int size); |
1451 | 1451 |
1452 // Writes a single byte or word of data in the code stream. Used | 1452 // Writes a single byte or word of data in the code stream. Used |
1453 // for inline tables, e.g., jump-tables. The constant pool should be | 1453 // for inline tables, e.g., jump-tables. The constant pool should be |
1454 // emitted before any use of db and dd to ensure that constant pools | 1454 // emitted before any use of db and dd to ensure that constant pools |
1455 // are not emitted as part of the tables generated. | 1455 // are not emitted as part of the tables generated. |
1456 void db(uint8_t data); | 1456 void db(uint8_t data); |
1457 void dd(uint32_t data); | 1457 void dd(uint32_t data); |
1458 void dd(Label* label); | |
1459 | 1458 |
1460 // Emits the address of the code stub's first instruction. | 1459 // Emits the address of the code stub's first instruction. |
1461 void emit_code_stub_address(Code* stub); | 1460 void emit_code_stub_address(Code* stub); |
1462 | 1461 |
1463 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1462 PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
1464 | 1463 |
1465 // Read/patch instructions | 1464 // Read/patch instructions |
1466 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 1465 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
1467 void instr_at_put(int pos, Instr instr) { | 1466 void instr_at_put(int pos, Instr instr) { |
1468 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; | 1467 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 public: | 1708 public: |
1710 explicit EnsureSpace(Assembler* assembler) { | 1709 explicit EnsureSpace(Assembler* assembler) { |
1711 assembler->CheckBuffer(); | 1710 assembler->CheckBuffer(); |
1712 } | 1711 } |
1713 }; | 1712 }; |
1714 | 1713 |
1715 | 1714 |
1716 } } // namespace v8::internal | 1715 } } // namespace v8::internal |
1717 | 1716 |
1718 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1717 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |