| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 | 1842 |
| 1843 const Register& Tmp0() const { | 1843 const Register& Tmp0() const { |
| 1844 return tmp0_; | 1844 return tmp0_; |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 const Register& Tmp1() const { | 1847 const Register& Tmp1() const { |
| 1848 return tmp1_; | 1848 return tmp1_; |
| 1849 } | 1849 } |
| 1850 | 1850 |
| 1851 const Register WTmp0() const { | 1851 const Register WTmp0() const { |
| 1852 return Register(tmp0_.code(), kWRegSize); | 1852 return Register::Create(tmp0_.code(), kWRegSize); |
| 1853 } | 1853 } |
| 1854 | 1854 |
| 1855 const Register WTmp1() const { | 1855 const Register WTmp1() const { |
| 1856 return Register(tmp1_.code(), kWRegSize); | 1856 return Register::Create(tmp1_.code(), kWRegSize); |
| 1857 } | 1857 } |
| 1858 | 1858 |
| 1859 void SetFPScratchRegister(const FPRegister& fptmp0) { | 1859 void SetFPScratchRegister(const FPRegister& fptmp0) { |
| 1860 fptmp0_ = fptmp0; | 1860 fptmp0_ = fptmp0; |
| 1861 } | 1861 } |
| 1862 | 1862 |
| 1863 const FPRegister& FPTmp0() const { | 1863 const FPRegister& FPTmp0() const { |
| 1864 return fptmp0_; | 1864 return fptmp0_; |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 const Register AppropriateTempFor( | 1867 const Register AppropriateTempFor( |
| 1868 const Register& target, | 1868 const Register& target, |
| 1869 const CPURegister& forbidden = NoCPUReg) const { | 1869 const CPURegister& forbidden = NoCPUReg) const { |
| 1870 Register candidate = forbidden.Is(Tmp0()) ? Tmp1() : Tmp0(); | 1870 Register candidate = forbidden.Is(Tmp0()) ? Tmp1() : Tmp0(); |
| 1871 ASSERT(!candidate.Is(target)); | 1871 ASSERT(!candidate.Is(target)); |
| 1872 return Register(candidate.code(), target.SizeInBits()); | 1872 return Register::Create(candidate.code(), target.SizeInBits()); |
| 1873 } | 1873 } |
| 1874 | 1874 |
| 1875 const FPRegister AppropriateTempFor( | 1875 const FPRegister AppropriateTempFor( |
| 1876 const FPRegister& target, | 1876 const FPRegister& target, |
| 1877 const CPURegister& forbidden = NoCPUReg) const { | 1877 const CPURegister& forbidden = NoCPUReg) const { |
| 1878 USE(forbidden); | 1878 USE(forbidden); |
| 1879 FPRegister candidate = FPTmp0(); | 1879 FPRegister candidate = FPTmp0(); |
| 1880 ASSERT(!candidate.Is(forbidden)); | 1880 ASSERT(!candidate.Is(forbidden)); |
| 1881 ASSERT(!candidate.Is(target)); | 1881 ASSERT(!candidate.Is(target)); |
| 1882 return FPRegister(candidate.code(), target.SizeInBits()); | 1882 return FPRegister::Create(candidate.code(), target.SizeInBits()); |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 // Like printf, but print at run-time from generated code. | 1885 // Like printf, but print at run-time from generated code. |
| 1886 // | 1886 // |
| 1887 // The caller must ensure that arguments for floating-point placeholders | 1887 // The caller must ensure that arguments for floating-point placeholders |
| 1888 // (such as %e, %f or %g) are FPRegisters, and that arguments for integer | 1888 // (such as %e, %f or %g) are FPRegisters, and that arguments for integer |
| 1889 // placeholders are Registers. | 1889 // placeholders are Registers. |
| 1890 // | 1890 // |
| 1891 // A maximum of four arguments may be given to any single Printf call. The | 1891 // A maximum of four arguments may be given to any single Printf call. The |
| 1892 // arguments must be of the same type, but they do not need to have the same | 1892 // arguments must be of the same type, but they do not need to have the same |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 #error "Unsupported option" | 2182 #error "Unsupported option" |
| 2183 #define CODE_COVERAGE_STRINGIFY(x) #x | 2183 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2184 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2184 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2185 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2185 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2186 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2186 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2187 #else | 2187 #else |
| 2188 #define ACCESS_MASM(masm) masm-> | 2188 #define ACCESS_MASM(masm) masm-> |
| 2189 #endif | 2189 #endif |
| 2190 | 2190 |
| 2191 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2191 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |