OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 Register scratch = kScratchRegister); | 1356 Register scratch = kScratchRegister); |
1357 | 1357 |
1358 // Initialize fields with filler values. Fields starting at |start_offset| | 1358 // Initialize fields with filler values. Fields starting at |start_offset| |
1359 // not including end_offset are overwritten with the value in |filler|. At | 1359 // not including end_offset are overwritten with the value in |filler|. At |
1360 // the end the loop, |start_offset| takes the value of |end_offset|. | 1360 // the end the loop, |start_offset| takes the value of |end_offset|. |
1361 void InitializeFieldsWithFiller(Register start_offset, | 1361 void InitializeFieldsWithFiller(Register start_offset, |
1362 Register end_offset, | 1362 Register end_offset, |
1363 Register filler); | 1363 Register filler); |
1364 | 1364 |
1365 | 1365 |
1366 // Emit code for a flooring division by a constant. The dividend register is | |
1367 // unchanged, the result is in rdx, and rax gets clobbered. | |
1368 void FlooringDiv(Register dividend, int32_t divisor); | |
1369 | |
1370 // --------------------------------------------------------------------------- | 1366 // --------------------------------------------------------------------------- |
1371 // StatsCounter support | 1367 // StatsCounter support |
1372 | 1368 |
1373 void SetCounter(StatsCounter* counter, int value); | 1369 void SetCounter(StatsCounter* counter, int value); |
1374 void IncrementCounter(StatsCounter* counter, int value); | 1370 void IncrementCounter(StatsCounter* counter, int value); |
1375 void DecrementCounter(StatsCounter* counter, int value); | 1371 void DecrementCounter(StatsCounter* counter, int value); |
1376 | 1372 |
1377 | 1373 |
1378 // --------------------------------------------------------------------------- | 1374 // --------------------------------------------------------------------------- |
1379 // Debugging | 1375 // Debugging |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 masm->popfq(); \ | 1607 masm->popfq(); \ |
1612 } \ | 1608 } \ |
1613 masm-> | 1609 masm-> |
1614 #else | 1610 #else |
1615 #define ACCESS_MASM(masm) masm-> | 1611 #define ACCESS_MASM(masm) masm-> |
1616 #endif | 1612 #endif |
1617 | 1613 |
1618 } } // namespace v8::internal | 1614 } } // namespace v8::internal |
1619 | 1615 |
1620 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1616 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |