Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 14364010: Lithium: avoid registers for constants when possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2890 matching lines...) Expand 10 before | Expand all | Expand 10 after
2901 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); 2901 MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
2902 2902
2903 // An input operand in a register, stack slot or a constant operand. 2903 // An input operand in a register, stack slot or a constant operand.
2904 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); 2904 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
2905 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); 2905 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
2906 2906
2907 // An input operand in a register or a constant operand. 2907 // An input operand in a register or a constant operand.
2908 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); 2908 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
2909 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value); 2909 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
2910 2910
2911 // An input operand in a constant operand.
2912 MUST_USE_RESULT LOperand* UseConstant(HValue* value);
2913
2911 // An input operand in register, stack slot or a constant operand. 2914 // An input operand in register, stack slot or a constant operand.
2912 // Will not be moved to a register even if one is freely available. 2915 // Will not be moved to a register even if one is freely available.
2913 MUST_USE_RESULT LOperand* UseAny(HValue* value); 2916 MUST_USE_RESULT LOperand* UseAny(HValue* value);
2914 2917
2915 // Temporary operand that must be in a register. 2918 // Temporary operand that must be in a register.
2916 MUST_USE_RESULT LUnallocated* TempRegister(); 2919 MUST_USE_RESULT LUnallocated* TempRegister();
2917 MUST_USE_RESULT LOperand* FixedTemp(Register reg); 2920 MUST_USE_RESULT LOperand* FixedTemp(Register reg);
2918 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg); 2921 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg);
2919 2922
2920 // Methods for setting up define-use relationships. 2923 // Methods for setting up define-use relationships.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 2987
2985 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2986 }; 2989 };
2987 2990
2988 #undef DECLARE_HYDROGEN_ACCESSOR 2991 #undef DECLARE_HYDROGEN_ACCESSOR
2989 #undef DECLARE_CONCRETE_INSTRUCTION 2992 #undef DECLARE_CONCRETE_INSTRUCTION
2990 2993
2991 } } // namespace v8::internal 2994 } } // namespace v8::internal
2992 2995
2993 #endif // V8_IA32_LITHIUM_IA32_H_ 2996 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698