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

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

Issue 14520016: MIPS: Lithium: avoid registers for constants when possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after
2715 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); 2715 MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
2716 2716
2717 // An input operand in a register, stack slot or a constant operand. 2717 // An input operand in a register, stack slot or a constant operand.
2718 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); 2718 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
2719 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); 2719 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
2720 2720
2721 // An input operand in a register or a constant operand. 2721 // An input operand in a register or a constant operand.
2722 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); 2722 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
2723 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value); 2723 MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
2724 2724
2725 // An input operand in a constant operand.
2726 MUST_USE_RESULT LOperand* UseConstant(HValue* value);
2727
2725 // An input operand in register, stack slot or a constant operand. 2728 // An input operand in register, stack slot or a constant operand.
2726 // Will not be moved to a register even if one is freely available. 2729 // Will not be moved to a register even if one is freely available.
2727 MUST_USE_RESULT LOperand* UseAny(HValue* value); 2730 MUST_USE_RESULT LOperand* UseAny(HValue* value);
2728 2731
2729 // Temporary operand that must be in a register. 2732 // Temporary operand that must be in a register.
2730 MUST_USE_RESULT LUnallocated* TempRegister(); 2733 MUST_USE_RESULT LUnallocated* TempRegister();
2731 MUST_USE_RESULT LOperand* FixedTemp(Register reg); 2734 MUST_USE_RESULT LOperand* FixedTemp(Register reg);
2732 MUST_USE_RESULT LOperand* FixedTemp(DoubleRegister reg); 2735 MUST_USE_RESULT LOperand* FixedTemp(DoubleRegister reg);
2733 2736
2734 // Methods for setting up define-use relationships. 2737 // Methods for setting up define-use relationships.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 2794
2792 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2795 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2793 }; 2796 };
2794 2797
2795 #undef DECLARE_HYDROGEN_ACCESSOR 2798 #undef DECLARE_HYDROGEN_ACCESSOR
2796 #undef DECLARE_CONCRETE_INSTRUCTION 2799 #undef DECLARE_CONCRETE_INSTRUCTION
2797 2800
2798 } } // namespace v8::internal 2801 } } // namespace v8::internal
2799 2802
2800 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2803 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698