| 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 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 | 1855 |
| 1856 const Register& Tmp0() const { | 1856 const Register& Tmp0() const { |
| 1857 return tmp0_; | 1857 return tmp0_; |
| 1858 } | 1858 } |
| 1859 | 1859 |
| 1860 const Register& Tmp1() const { | 1860 const Register& Tmp1() const { |
| 1861 return tmp1_; | 1861 return tmp1_; |
| 1862 } | 1862 } |
| 1863 | 1863 |
| 1864 const Register WTmp0() const { | 1864 const Register WTmp0() const { |
| 1865 return Register(tmp0_.code(), kWRegSize); | 1865 return Register::Create(tmp0_.code(), kWRegSize); |
| 1866 } | 1866 } |
| 1867 | 1867 |
| 1868 const Register WTmp1() const { | 1868 const Register WTmp1() const { |
| 1869 return Register(tmp1_.code(), kWRegSize); | 1869 return Register::Create(tmp1_.code(), kWRegSize); |
| 1870 } | 1870 } |
| 1871 | 1871 |
| 1872 void SetFPScratchRegister(const FPRegister& fptmp0) { | 1872 void SetFPScratchRegister(const FPRegister& fptmp0) { |
| 1873 fptmp0_ = fptmp0; | 1873 fptmp0_ = fptmp0; |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 const FPRegister& FPTmp0() const { | 1876 const FPRegister& FPTmp0() const { |
| 1877 return fptmp0_; | 1877 return fptmp0_; |
| 1878 } | 1878 } |
| 1879 | 1879 |
| 1880 const Register AppropriateTempFor( | 1880 const Register AppropriateTempFor( |
| 1881 const Register& target, | 1881 const Register& target, |
| 1882 const CPURegister& forbidden = NoCPUReg) const { | 1882 const CPURegister& forbidden = NoCPUReg) const { |
| 1883 Register candidate = forbidden.Is(Tmp0()) ? Tmp1() : Tmp0(); | 1883 Register candidate = forbidden.Is(Tmp0()) ? Tmp1() : Tmp0(); |
| 1884 ASSERT(!candidate.Is(target)); | 1884 ASSERT(!candidate.Is(target)); |
| 1885 return Register(candidate.code(), target.SizeInBits()); | 1885 return Register::Create(candidate.code(), target.SizeInBits()); |
| 1886 } | 1886 } |
| 1887 | 1887 |
| 1888 const FPRegister AppropriateTempFor( | 1888 const FPRegister AppropriateTempFor( |
| 1889 const FPRegister& target, | 1889 const FPRegister& target, |
| 1890 const CPURegister& forbidden = NoCPUReg) const { | 1890 const CPURegister& forbidden = NoCPUReg) const { |
| 1891 USE(forbidden); | 1891 USE(forbidden); |
| 1892 FPRegister candidate = FPTmp0(); | 1892 FPRegister candidate = FPTmp0(); |
| 1893 ASSERT(!candidate.Is(forbidden)); | 1893 ASSERT(!candidate.Is(forbidden)); |
| 1894 ASSERT(!candidate.Is(target)); | 1894 ASSERT(!candidate.Is(target)); |
| 1895 return FPRegister(candidate.code(), target.SizeInBits()); | 1895 return FPRegister::Create(candidate.code(), target.SizeInBits()); |
| 1896 } | 1896 } |
| 1897 | 1897 |
| 1898 // Like printf, but print at run-time from generated code. | 1898 // Like printf, but print at run-time from generated code. |
| 1899 // | 1899 // |
| 1900 // The caller must ensure that arguments for floating-point placeholders | 1900 // The caller must ensure that arguments for floating-point placeholders |
| 1901 // (such as %e, %f or %g) are FPRegisters, and that arguments for integer | 1901 // (such as %e, %f or %g) are FPRegisters, and that arguments for integer |
| 1902 // placeholders are Registers. | 1902 // placeholders are Registers. |
| 1903 // | 1903 // |
| 1904 // A maximum of four arguments may be given to any single Printf call. The | 1904 // A maximum of four arguments may be given to any single Printf call. The |
| 1905 // arguments must be of the same type, but they do not need to have the same | 1905 // 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... |
| 2195 #error "Unsupported option" | 2195 #error "Unsupported option" |
| 2196 #define CODE_COVERAGE_STRINGIFY(x) #x | 2196 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2197 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2197 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2198 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2198 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2199 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2199 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2200 #else | 2200 #else |
| 2201 #define ACCESS_MASM(masm) masm-> | 2201 #define ACCESS_MASM(masm) masm-> |
| 2202 #endif | 2202 #endif |
| 2203 | 2203 |
| 2204 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2204 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |