| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 
| 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 
| 7 | 7 | 
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" | 
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" | 
| 10 #include "src/base/flags.h" | 10 #include "src/base/flags.h" | 
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1466   // free, do use it, otherwise kScratchRegister will be used). | 1466   // free, do use it, otherwise kScratchRegister will be used). | 
| 1467   // The min_length is a minimum limit on the value that length will have. | 1467   // The min_length is a minimum limit on the value that length will have. | 
| 1468   // The algorithm has some special cases that might be omitted if the string | 1468   // The algorithm has some special cases that might be omitted if the string | 
| 1469   // is known to always be long. | 1469   // is known to always be long. | 
| 1470   void CopyBytes(Register destination, | 1470   void CopyBytes(Register destination, | 
| 1471                  Register source, | 1471                  Register source, | 
| 1472                  Register length, | 1472                  Register length, | 
| 1473                  int min_length = 0, | 1473                  int min_length = 0, | 
| 1474                  Register scratch = kScratchRegister); | 1474                  Register scratch = kScratchRegister); | 
| 1475 | 1475 | 
| 1476   // Initialize fields with filler values.  Fields starting at |start_offset| | 1476   // Initialize fields with filler values.  Fields starting at |current_address| | 
| 1477   // not including end_offset are overwritten with the value in |filler|.  At | 1477   // not including |end_address| are overwritten with the value in |filler|.  At | 
| 1478   // the end the loop, |start_offset| takes the value of |end_offset|. | 1478   // the end the loop, |current_address| takes the value of |end_address|. | 
| 1479   void InitializeFieldsWithFiller(Register start_offset, | 1479   void InitializeFieldsWithFiller(Register current_address, | 
| 1480                                   Register end_offset, | 1480                                   Register end_address, Register filler); | 
| 1481                                   Register filler); |  | 
| 1482 | 1481 | 
| 1483 | 1482 | 
| 1484   // Emit code for a truncating division by a constant. The dividend register is | 1483   // Emit code for a truncating division by a constant. The dividend register is | 
| 1485   // unchanged, the result is in rdx, and rax gets clobbered. | 1484   // unchanged, the result is in rdx, and rax gets clobbered. | 
| 1486   void TruncatingDiv(Register dividend, int32_t divisor); | 1485   void TruncatingDiv(Register dividend, int32_t divisor); | 
| 1487 | 1486 | 
| 1488   // --------------------------------------------------------------------------- | 1487   // --------------------------------------------------------------------------- | 
| 1489   // StatsCounter support | 1488   // StatsCounter support | 
| 1490 | 1489 | 
| 1491   void SetCounter(StatsCounter* counter, int value); | 1490   void SetCounter(StatsCounter* counter, int value); | 
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1733   }                                                                          \ | 1732   }                                                                          \ | 
| 1734   masm-> | 1733   masm-> | 
| 1735 #else | 1734 #else | 
| 1736 #define ACCESS_MASM(masm) masm-> | 1735 #define ACCESS_MASM(masm) masm-> | 
| 1737 #endif | 1736 #endif | 
| 1738 | 1737 | 
| 1739 }  // namespace internal | 1738 }  // namespace internal | 
| 1740 }  // namespace v8 | 1739 }  // namespace v8 | 
| 1741 | 1740 | 
| 1742 #endif  // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1741 #endif  // V8_X64_MACRO_ASSEMBLER_X64_H_ | 
| OLD | NEW | 
|---|