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

Side by Side Diff: src/x64/lithium-x64.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, 8 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); 2667 MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
2668 2668
2669 // An input operand in a register, stack slot or a constant operand. 2669 // An input operand in a register, stack slot or a constant operand.
2670 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); 2670 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
2671 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); 2671 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
2672 2672
2673 // An input operand in a register or a constant operand. 2673 // An input operand in a register or a constant operand.
2674 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); 2674 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
2675 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value); 2675 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
2676 2676
2677 // An input operand in a constant operand.
2678 MUST_USE_RESULT LOperand* UseConstant(HValue* value);
2679
2677 // An input operand in register, stack slot or a constant operand. 2680 // An input operand in register, stack slot or a constant operand.
2678 // Will not be moved to a register even if one is freely available. 2681 // Will not be moved to a register even if one is freely available.
2679 MUST_USE_RESULT LOperand* UseAny(HValue* value); 2682 MUST_USE_RESULT LOperand* UseAny(HValue* value);
2680 2683
2681 // Temporary operand that must be in a register. 2684 // Temporary operand that must be in a register.
2682 MUST_USE_RESULT LUnallocated* TempRegister(); 2685 MUST_USE_RESULT LUnallocated* TempRegister();
2683 MUST_USE_RESULT LOperand* FixedTemp(Register reg); 2686 MUST_USE_RESULT LOperand* FixedTemp(Register reg);
2684 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg); 2687 MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg);
2685 2688
2686 // Methods for setting up define-use relationships. 2689 // Methods for setting up define-use relationships.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 2749
2747 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2748 }; 2751 };
2749 2752
2750 #undef DECLARE_HYDROGEN_ACCESSOR 2753 #undef DECLARE_HYDROGEN_ACCESSOR
2751 #undef DECLARE_CONCRETE_INSTRUCTION 2754 #undef DECLARE_CONCRETE_INSTRUCTION
2752 2755
2753 } } // namespace v8::int 2756 } } // namespace v8::int
2754 2757
2755 #endif // V8_X64_LITHIUM_X64_H_ 2758 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698