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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 870 |
871 friend class CodePatcher; | 871 friend class CodePatcher; |
872 friend class EnsureSpace; | 872 friend class EnsureSpace; |
873 | 873 |
874 // Code buffer: | 874 // Code buffer: |
875 // The buffer into which code and relocation info are generated. | 875 // The buffer into which code and relocation info are generated. |
876 byte* buffer_; | 876 byte* buffer_; |
877 int buffer_size_; | 877 int buffer_size_; |
878 // True if the assembler owns the buffer, false if buffer is external. | 878 // True if the assembler owns the buffer, false if buffer is external. |
879 bool own_buffer_; | 879 bool own_buffer_; |
| 880 // A previously allocated buffer of kMinimalBufferSize bytes, or NULL. |
| 881 static byte* spare_buffer_; |
880 | 882 |
881 // code generation | 883 // code generation |
882 byte* pc_; // the program counter; moves forward | 884 byte* pc_; // the program counter; moves forward |
883 RelocInfoWriter reloc_info_writer; | 885 RelocInfoWriter reloc_info_writer; |
884 | 886 |
885 // push-pop elimination | 887 // push-pop elimination |
886 byte* last_pc_; | 888 byte* last_pc_; |
887 | 889 |
888 // source position information | 890 // source position information |
889 int current_statement_position_; | 891 int current_statement_position_; |
(...skipping 26 matching lines...) Expand all Loading... |
916 private: | 918 private: |
917 Assembler* assembler_; | 919 Assembler* assembler_; |
918 #ifdef DEBUG | 920 #ifdef DEBUG |
919 int space_before_; | 921 int space_before_; |
920 #endif | 922 #endif |
921 }; | 923 }; |
922 | 924 |
923 } } // namespace v8::internal | 925 } } // namespace v8::internal |
924 | 926 |
925 #endif // V8_X64_ASSEMBLER_X64_H_ | 927 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |