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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 void RecordComment(const char* msg); | 1346 void RecordComment(const char* msg); |
1347 | 1347 |
1348 // Record the emission of a constant pool. | 1348 // Record the emission of a constant pool. |
1349 // | 1349 // |
1350 // The emission of constant pool depends on the size of the code generated and | 1350 // The emission of constant pool depends on the size of the code generated and |
1351 // the number of RelocInfo recorded. | 1351 // the number of RelocInfo recorded. |
1352 // The Debug mechanism needs to map code offsets between two versions of a | 1352 // The Debug mechanism needs to map code offsets between two versions of a |
1353 // function, compiled with and without debugger support (see for example | 1353 // function, compiled with and without debugger support (see for example |
1354 // Debug::PrepareForBreakPoints()). | 1354 // Debug::PrepareForBreakPoints()). |
1355 // Compiling functions with debugger support generates additional code | 1355 // Compiling functions with debugger support generates additional code |
1356 // (Debug::GenerateSlot()). This may affect the emission of the constant | 1356 // (DebugCodegen::GenerateSlot()). This may affect the emission of the |
1357 // pools and cause the version of the code with debugger support to have | 1357 // constant pools and cause the version of the code with debugger support to |
1358 // constant pools generated in different places. | 1358 // have constant pools generated in different places. |
1359 // Recording the position and size of emitted constant pools allows to | 1359 // Recording the position and size of emitted constant pools allows to |
1360 // correctly compute the offset mappings between the different versions of a | 1360 // correctly compute the offset mappings between the different versions of a |
1361 // function in all situations. | 1361 // function in all situations. |
1362 // | 1362 // |
1363 // The parameter indicates the size of the constant pool (in bytes), including | 1363 // The parameter indicates the size of the constant pool (in bytes), including |
1364 // the marker and branch over the data. | 1364 // the marker and branch over the data. |
1365 void RecordConstPool(int size); | 1365 void RecordConstPool(int size); |
1366 | 1366 |
1367 // Writes a single byte or word of data in the code stream. Used | 1367 // Writes a single byte or word of data in the code stream. Used |
1368 // for inline tables, e.g., jump-tables. The constant pool should be | 1368 // for inline tables, e.g., jump-tables. The constant pool should be |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 public: | 1629 public: |
1630 explicit EnsureSpace(Assembler* assembler) { | 1630 explicit EnsureSpace(Assembler* assembler) { |
1631 assembler->CheckBuffer(); | 1631 assembler->CheckBuffer(); |
1632 } | 1632 } |
1633 }; | 1633 }; |
1634 | 1634 |
1635 | 1635 |
1636 } } // namespace v8::internal | 1636 } } // namespace v8::internal |
1637 | 1637 |
1638 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1638 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |