OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1890 // Operand created by UseRegister is guaranteed to be live until the end of | 1890 // Operand created by UseRegister is guaranteed to be live until the end of |
1891 // instruction. This means that register allocator will not reuse it's | 1891 // instruction. This means that register allocator will not reuse it's |
1892 // register for any other operand inside instruction. | 1892 // register for any other operand inside instruction. |
1893 // Operand created by UseRegisterAtStart is guaranteed to be live only at | 1893 // Operand created by UseRegisterAtStart is guaranteed to be live only at |
1894 // instruction start. Register allocator is free to assign the same register | 1894 // instruction start. Register allocator is free to assign the same register |
1895 // to some other operand used inside instruction (i.e. temporary or | 1895 // to some other operand used inside instruction (i.e. temporary or |
1896 // output). | 1896 // output). |
1897 MUST_USE_RESULT LOperand* UseRegister(HValue* value); | 1897 MUST_USE_RESULT LOperand* UseRegister(HValue* value); |
1898 MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value); | 1898 MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value); |
1899 | 1899 |
1900 // A value in a register that may be trashed. | 1900 // An input operand in a register that may be trashed. |
1901 MUST_USE_RESULT LOperand* UseTempRegister(HValue* value); | 1901 MUST_USE_RESULT LOperand* UseTempRegister(HValue* value); |
| 1902 |
| 1903 // An input operand in a register or stack slot. |
1902 MUST_USE_RESULT LOperand* Use(HValue* value); | 1904 MUST_USE_RESULT LOperand* Use(HValue* value); |
1903 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); | 1905 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); |
| 1906 |
| 1907 // An input operand in a register, stack slot or a constant operand. |
1904 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); | 1908 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); |
1905 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); | 1909 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); |
| 1910 |
| 1911 // An input operand in a register or a constant operand. |
1906 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); | 1912 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); |
1907 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value); | 1913 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value); |
1908 | 1914 |
| 1915 // An input operand in register, stack slot or a constant operand. |
| 1916 // Will not be moved to a register even if one is freely available. |
| 1917 MUST_USE_RESULT LOperand* UseAny(HValue* value); |
| 1918 |
1909 // Temporary operand that must be in a register. | 1919 // Temporary operand that must be in a register. |
1910 MUST_USE_RESULT LUnallocated* TempRegister(); | 1920 MUST_USE_RESULT LUnallocated* TempRegister(); |
1911 MUST_USE_RESULT LOperand* FixedTemp(Register reg); | 1921 MUST_USE_RESULT LOperand* FixedTemp(Register reg); |
1912 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg); | 1922 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg); |
1913 | 1923 |
1914 // Methods for setting up define-use relationships. | 1924 // Methods for setting up define-use relationships. |
1915 // Return the same instruction that they are passed. | 1925 // Return the same instruction that they are passed. |
1916 template<int I, int T> | 1926 template<int I, int T> |
1917 LInstruction* Define(LTemplateInstruction<1, I, T>* instr, | 1927 LInstruction* Define(LTemplateInstruction<1, I, T>* instr, |
1918 LUnallocated* result); | 1928 LUnallocated* result); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1986 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1977 }; | 1987 }; |
1978 | 1988 |
1979 #undef DECLARE_HYDROGEN_ACCESSOR | 1989 #undef DECLARE_HYDROGEN_ACCESSOR |
1980 #undef DECLARE_INSTRUCTION | 1990 #undef DECLARE_INSTRUCTION |
1981 #undef DECLARE_CONCRETE_INSTRUCTION | 1991 #undef DECLARE_CONCRETE_INSTRUCTION |
1982 | 1992 |
1983 } } // namespace v8::internal | 1993 } } // namespace v8::internal |
1984 | 1994 |
1985 #endif // V8_IA32_LITHIUM_IA32_H_ | 1995 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |