| 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 // Check the code size generated from label to here. | 944 // Check the code size generated from label to here. |
| 945 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } | 945 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } |
| 946 | 946 |
| 947 // Mark address of the ExitJSFrame code. | 947 // Mark address of the ExitJSFrame code. |
| 948 void RecordJSReturn(); | 948 void RecordJSReturn(); |
| 949 | 949 |
| 950 // Mark address of a debug break slot. | 950 // Mark address of a debug break slot. |
| 951 void RecordDebugBreakSlot(); | 951 void RecordDebugBreakSlot(); |
| 952 | 952 |
| 953 // Record a comment relocation entry that can be used by a disassembler. | 953 // Record a comment relocation entry that can be used by a disassembler. |
| 954 // Use --code-comments to enable. | 954 // Use --code-comments to enable, or provide "force = true" flag to always |
| 955 void RecordComment(const char* msg); | 955 // write a comment. |
| 956 void RecordComment(const char* msg, bool force = false); |
| 956 | 957 |
| 957 // Writes a single byte or word of data in the code stream. Used for | 958 // Writes a single byte or word of data in the code stream. Used for |
| 958 // inline tables, e.g., jump-tables. | 959 // inline tables, e.g., jump-tables. |
| 959 void db(uint8_t data); | 960 void db(uint8_t data); |
| 960 void dd(uint32_t data); | 961 void dd(uint32_t data); |
| 961 | 962 |
| 962 int pc_offset() const { return pc_ - buffer_; } | 963 int pc_offset() const { return pc_ - buffer_; } |
| 963 | 964 |
| 964 // Check if there is less than kGap bytes available in the buffer. | 965 // Check if there is less than kGap bytes available in the buffer. |
| 965 // If this is the case, we need to grow the buffer before emitting | 966 // If this is the case, we need to grow the buffer before emitting |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 private: | 1081 private: |
| 1081 Assembler* assembler_; | 1082 Assembler* assembler_; |
| 1082 #ifdef DEBUG | 1083 #ifdef DEBUG |
| 1083 int space_before_; | 1084 int space_before_; |
| 1084 #endif | 1085 #endif |
| 1085 }; | 1086 }; |
| 1086 | 1087 |
| 1087 } } // namespace v8::internal | 1088 } } // namespace v8::internal |
| 1088 | 1089 |
| 1089 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1090 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |