| 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 void RecordJSReturn(); | 928 void RecordJSReturn(); |
| 929 | 929 |
| 930 // Mark address of a debug break slot. | 930 // Mark address of a debug break slot. |
| 931 void RecordDebugBreakSlot(); | 931 void RecordDebugBreakSlot(); |
| 932 | 932 |
| 933 // Record a comment relocation entry that can be used by a disassembler. | 933 // Record a comment relocation entry that can be used by a disassembler. |
| 934 // Use --code-comments to enable, or provide "force = true" flag to always | 934 // Use --code-comments to enable, or provide "force = true" flag to always |
| 935 // write a comment. | 935 // write a comment. |
| 936 void RecordComment(const char* msg, bool force = false); | 936 void RecordComment(const char* msg, bool force = false); |
| 937 | 937 |
| 938 // Record a deoptimization reason that can be used by a log or cpu profiler. |
| 939 // Use --trace-deopt to enable. |
| 940 void RecordDeoptReason(const int reason, const int raw_position); |
| 941 |
| 938 // Writes a single byte or word of data in the code stream. Used for | 942 // Writes a single byte or word of data in the code stream. Used for |
| 939 // inline tables, e.g., jump-tables. | 943 // inline tables, e.g., jump-tables. |
| 940 void db(uint8_t data); | 944 void db(uint8_t data); |
| 941 void dd(uint32_t data); | 945 void dd(uint32_t data); |
| 942 | 946 |
| 943 // Check if there is less than kGap bytes available in the buffer. | 947 // Check if there is less than kGap bytes available in the buffer. |
| 944 // If this is the case, we need to grow the buffer before emitting | 948 // If this is the case, we need to grow the buffer before emitting |
| 945 // an instruction or relocation information. | 949 // an instruction or relocation information. |
| 946 inline bool buffer_overflow() const { | 950 inline bool buffer_overflow() const { |
| 947 return pc_ >= reloc_info_writer.pos() - kGap; | 951 return pc_ >= reloc_info_writer.pos() - kGap; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 private: | 1062 private: |
| 1059 Assembler* assembler_; | 1063 Assembler* assembler_; |
| 1060 #ifdef DEBUG | 1064 #ifdef DEBUG |
| 1061 int space_before_; | 1065 int space_before_; |
| 1062 #endif | 1066 #endif |
| 1063 }; | 1067 }; |
| 1064 | 1068 |
| 1065 } } // namespace v8::internal | 1069 } } // namespace v8::internal |
| 1066 | 1070 |
| 1067 #endif // V8_X87_ASSEMBLER_X87_H_ | 1071 #endif // V8_X87_ASSEMBLER_X87_H_ |
| OLD | NEW |