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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 // Mark address of the ExitJSFrame code. | 1455 // Mark address of the ExitJSFrame code. |
1456 void RecordJSReturn(); | 1456 void RecordJSReturn(); |
1457 | 1457 |
1458 // Mark address of a debug break slot. | 1458 // Mark address of a debug break slot. |
1459 void RecordDebugBreakSlot(); | 1459 void RecordDebugBreakSlot(); |
1460 | 1460 |
1461 // Record a comment relocation entry that can be used by a disassembler. | 1461 // Record a comment relocation entry that can be used by a disassembler. |
1462 // Use --code-comments to enable. | 1462 // Use --code-comments to enable. |
1463 void RecordComment(const char* msg, bool force = false); | 1463 void RecordComment(const char* msg, bool force = false); |
1464 | 1464 |
1465 // Allocate a constant pool of the correct size for the generated code. | |
1466 MaybeObject* AllocateConstantPool(Heap* heap); | |
1467 | |
1468 // Generate the constant pool for the generated code. | |
1469 void PopulateConstantPool(ConstantPoolArray* constant_pool); | |
1470 | |
1471 // Writes a single word of data in the code stream. | 1465 // Writes a single word of data in the code stream. |
1472 // Used for inline tables, e.g., jump-tables. | 1466 // Used for inline tables, e.g., jump-tables. |
1473 void db(uint8_t data); | 1467 void db(uint8_t data); |
1474 void dd(uint32_t data); | 1468 void dd(uint32_t data); |
1475 | 1469 |
1476 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1470 PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
1477 | 1471 |
1478 // Check if there is less than kGap bytes available in the buffer. | 1472 // Check if there is less than kGap bytes available in the buffer. |
1479 // If this is the case, we need to grow the buffer before emitting | 1473 // If this is the case, we need to grow the buffer before emitting |
1480 // an instruction or relocation information. | 1474 // an instruction or relocation information. |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1755 private: | 1749 private: |
1756 Assembler* assembler_; | 1750 Assembler* assembler_; |
1757 #ifdef DEBUG | 1751 #ifdef DEBUG |
1758 int space_before_; | 1752 int space_before_; |
1759 #endif | 1753 #endif |
1760 }; | 1754 }; |
1761 | 1755 |
1762 } } // namespace v8::internal | 1756 } } // namespace v8::internal |
1763 | 1757 |
1764 #endif // V8_X64_ASSEMBLER_X64_H_ | 1758 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |