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 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 Register scratch = kScratchRegister); | 1360 Register scratch = kScratchRegister); |
1361 | 1361 |
1362 // Initialize fields with filler values. Fields starting at |start_offset| | 1362 // Initialize fields with filler values. Fields starting at |start_offset| |
1363 // not including end_offset are overwritten with the value in |filler|. At | 1363 // not including end_offset are overwritten with the value in |filler|. At |
1364 // the end the loop, |start_offset| takes the value of |end_offset|. | 1364 // the end the loop, |start_offset| takes the value of |end_offset|. |
1365 void InitializeFieldsWithFiller(Register start_offset, | 1365 void InitializeFieldsWithFiller(Register start_offset, |
1366 Register end_offset, | 1366 Register end_offset, |
1367 Register filler); | 1367 Register filler); |
1368 | 1368 |
1369 | 1369 |
1370 // Emit code for a flooring division by a constant. The dividend register is | 1370 // Emit code for a truncating division by a constant. The dividend register is |
1371 // unchanged, the result is in rdx, and rax gets clobbered. | 1371 // unchanged, the result is in rdx, and rax gets clobbered. |
1372 void FlooringDiv(Register dividend, int32_t divisor); | 1372 void TruncatingDiv(Register dividend, int32_t divisor); |
1373 | 1373 |
1374 // --------------------------------------------------------------------------- | 1374 // --------------------------------------------------------------------------- |
1375 // StatsCounter support | 1375 // StatsCounter support |
1376 | 1376 |
1377 void SetCounter(StatsCounter* counter, int value); | 1377 void SetCounter(StatsCounter* counter, int value); |
1378 void IncrementCounter(StatsCounter* counter, int value); | 1378 void IncrementCounter(StatsCounter* counter, int value); |
1379 void DecrementCounter(StatsCounter* counter, int value); | 1379 void DecrementCounter(StatsCounter* counter, int value); |
1380 | 1380 |
1381 | 1381 |
1382 // --------------------------------------------------------------------------- | 1382 // --------------------------------------------------------------------------- |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 masm->popfq(); \ | 1615 masm->popfq(); \ |
1616 } \ | 1616 } \ |
1617 masm-> | 1617 masm-> |
1618 #else | 1618 #else |
1619 #define ACCESS_MASM(masm) masm-> | 1619 #define ACCESS_MASM(masm) masm-> |
1620 #endif | 1620 #endif |
1621 | 1621 |
1622 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
1623 | 1623 |
1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |