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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 byte* buffer_; | 1582 byte* buffer_; |
1583 int buffer_size_; | 1583 int buffer_size_; |
1584 // True if the assembler owns the buffer, false if buffer is external. | 1584 // True if the assembler owns the buffer, false if buffer is external. |
1585 bool own_buffer_; | 1585 bool own_buffer_; |
1586 | 1586 |
1587 // code generation | 1587 // code generation |
1588 byte* pc_; // the program counter; moves forward | 1588 byte* pc_; // the program counter; moves forward |
1589 RelocInfoWriter reloc_info_writer; | 1589 RelocInfoWriter reloc_info_writer; |
1590 | 1590 |
1591 List< Handle<Code> > code_targets_; | 1591 List< Handle<Code> > code_targets_; |
| 1592 // push-pop elimination |
| 1593 byte* last_pc_; |
1592 | 1594 |
1593 PositionsRecorder positions_recorder_; | 1595 PositionsRecorder positions_recorder_; |
1594 | 1596 |
1595 bool emit_debug_code_; | 1597 bool emit_debug_code_; |
1596 | 1598 |
1597 friend class PositionsRecorder; | 1599 friend class PositionsRecorder; |
1598 }; | 1600 }; |
1599 | 1601 |
1600 | 1602 |
1601 // Helper class that ensures that there is enough space for generating | 1603 // Helper class that ensures that there is enough space for generating |
(...skipping 19 matching lines...) Expand all Loading... |
1621 private: | 1623 private: |
1622 Assembler* assembler_; | 1624 Assembler* assembler_; |
1623 #ifdef DEBUG | 1625 #ifdef DEBUG |
1624 int space_before_; | 1626 int space_before_; |
1625 #endif | 1627 #endif |
1626 }; | 1628 }; |
1627 | 1629 |
1628 } } // namespace v8::internal | 1630 } } // namespace v8::internal |
1629 | 1631 |
1630 #endif // V8_X64_ASSEMBLER_X64_H_ | 1632 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |