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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 | 808 |
809 friend class CodePatcher; | 809 friend class CodePatcher; |
810 friend class EnsureSpace; | 810 friend class EnsureSpace; |
811 | 811 |
812 // Code buffer: | 812 // Code buffer: |
813 // The buffer into which code and relocation info are generated. | 813 // The buffer into which code and relocation info are generated. |
814 byte* buffer_; | 814 byte* buffer_; |
815 int buffer_size_; | 815 int buffer_size_; |
816 // True if the assembler owns the buffer, false if buffer is external. | 816 // True if the assembler owns the buffer, false if buffer is external. |
817 bool own_buffer_; | 817 bool own_buffer_; |
| 818 // A previously allocated buffer of kMinimalBufferSize bytes, or NULL. |
| 819 static byte* spare_buffer_; |
818 | 820 |
819 // code generation | 821 // code generation |
820 byte* pc_; // the program counter; moves forward | 822 byte* pc_; // the program counter; moves forward |
821 RelocInfoWriter reloc_info_writer; | 823 RelocInfoWriter reloc_info_writer; |
822 | 824 |
823 // push-pop elimination | 825 // push-pop elimination |
824 byte* last_pc_; | 826 byte* last_pc_; |
825 | 827 |
826 // source position information | 828 // source position information |
827 int current_statement_position_; | 829 int current_statement_position_; |
(...skipping 26 matching lines...) Expand all Loading... |
854 private: | 856 private: |
855 Assembler* assembler_; | 857 Assembler* assembler_; |
856 #ifdef DEBUG | 858 #ifdef DEBUG |
857 int space_before_; | 859 int space_before_; |
858 #endif | 860 #endif |
859 }; | 861 }; |
860 | 862 |
861 } } // namespace v8::internal | 863 } } // namespace v8::internal |
862 | 864 |
863 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 865 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |