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 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } | 1305 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } |
1306 | 1306 |
1307 // Mark address of the ExitJSFrame code. | 1307 // Mark address of the ExitJSFrame code. |
1308 void RecordJSReturn(); | 1308 void RecordJSReturn(); |
1309 | 1309 |
1310 // Mark address of a debug break slot. | 1310 // Mark address of a debug break slot. |
1311 void RecordDebugBreakSlot(); | 1311 void RecordDebugBreakSlot(); |
1312 | 1312 |
1313 // Record a comment relocation entry that can be used by a disassembler. | 1313 // Record a comment relocation entry that can be used by a disassembler. |
1314 // Use --code-comments to enable. | 1314 // Use --code-comments to enable. |
1315 void RecordComment(const char* msg); | 1315 void RecordComment(const char* msg, bool force = false); |
1316 | 1316 |
1317 // Writes a single word of data in the code stream. | 1317 // Writes a single word of data in the code stream. |
1318 // Used for inline tables, e.g., jump-tables. | 1318 // Used for inline tables, e.g., jump-tables. |
1319 void db(uint8_t data); | 1319 void db(uint8_t data); |
1320 void dd(uint32_t data); | 1320 void dd(uint32_t data); |
1321 | 1321 |
1322 int pc_offset() const { return static_cast<int>(pc_ - buffer_); } | 1322 int pc_offset() const { return static_cast<int>(pc_ - buffer_); } |
1323 | 1323 |
1324 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1324 PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
1325 | 1325 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 private: | 1573 private: |
1574 Assembler* assembler_; | 1574 Assembler* assembler_; |
1575 #ifdef DEBUG | 1575 #ifdef DEBUG |
1576 int space_before_; | 1576 int space_before_; |
1577 #endif | 1577 #endif |
1578 }; | 1578 }; |
1579 | 1579 |
1580 } } // namespace v8::internal | 1580 } } // namespace v8::internal |
1581 | 1581 |
1582 #endif // V8_X64_ASSEMBLER_X64_H_ | 1582 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |