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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
950 // Check the code size generated from label to here. | 950 // Check the code size generated from label to here. |
951 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } | 951 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } |
952 | 952 |
953 // Mark address of the ExitJSFrame code. | 953 // Mark address of the ExitJSFrame code. |
954 void RecordJSReturn(); | 954 void RecordJSReturn(); |
955 | 955 |
956 // Mark address of a debug break slot. | 956 // Mark address of a debug break slot. |
957 void RecordDebugBreakSlot(); | 957 void RecordDebugBreakSlot(); |
958 | 958 |
959 // Record a comment relocation entry that can be used by a disassembler. | 959 // Record a comment relocation entry that can be used by a disassembler. |
960 // Use --code-comments to enable. | 960 // Use --code-comments to enable. |
Kevin Millikin (Chromium)
2011/02/15 12:19:15
We should probably update this comment to mention
Rico
2011/02/15 13:33:00
Done.
| |
961 void RecordComment(const char* msg); | 961 void RecordComment(const char* msg, bool force = false); |
962 | 962 |
963 // Writes a single byte or word of data in the code stream. Used for | 963 // Writes a single byte or word of data in the code stream. Used for |
964 // inline tables, e.g., jump-tables. | 964 // inline tables, e.g., jump-tables. |
965 void db(uint8_t data); | 965 void db(uint8_t data); |
966 void dd(uint32_t data); | 966 void dd(uint32_t data); |
967 | 967 |
968 int pc_offset() const { return pc_ - buffer_; } | 968 int pc_offset() const { return pc_ - buffer_; } |
969 | 969 |
970 // Check if there is less than kGap bytes available in the buffer. | 970 // Check if there is less than kGap bytes available in the buffer. |
971 // If this is the case, we need to grow the buffer before emitting | 971 // 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... | |
1086 private: | 1086 private: |
1087 Assembler* assembler_; | 1087 Assembler* assembler_; |
1088 #ifdef DEBUG | 1088 #ifdef DEBUG |
1089 int space_before_; | 1089 int space_before_; |
1090 #endif | 1090 #endif |
1091 }; | 1091 }; |
1092 | 1092 |
1093 } } // namespace v8::internal | 1093 } } // namespace v8::internal |
1094 | 1094 |
1095 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1095 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |