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

Side by Side Diff: src/lithium.h

Issue 18773003: ARM: Add support for temp double registers in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/arm/lithium-arm.cc ('k') | src/lithium.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 FIXED_SLOT, 96 FIXED_SLOT,
97 EXTENDED_POLICY 97 EXTENDED_POLICY
98 }; 98 };
99 99
100 enum ExtendedPolicy { 100 enum ExtendedPolicy {
101 NONE, 101 NONE,
102 ANY, 102 ANY,
103 FIXED_REGISTER, 103 FIXED_REGISTER,
104 FIXED_DOUBLE_REGISTER, 104 FIXED_DOUBLE_REGISTER,
105 MUST_HAVE_REGISTER, 105 MUST_HAVE_REGISTER,
106 TEMP_DOUBLE_REGISTER,
106 WRITABLE_REGISTER, 107 WRITABLE_REGISTER,
107 SAME_AS_FIRST_INPUT 108 SAME_AS_FIRST_INPUT
108 }; 109 };
109 110
110 // Lifetime of operand inside the instruction. 111 // Lifetime of operand inside the instruction.
111 enum Lifetime { 112 enum Lifetime {
112 // USED_AT_START operand is guaranteed to be live only at 113 // USED_AT_START operand is guaranteed to be live only at
113 // instruction start. Register allocator is free to assign the same register 114 // instruction start. Register allocator is free to assign the same register
114 // to some other operand used inside instruction (i.e. temporary or 115 // to some other operand used inside instruction (i.e. temporary or
115 // output). 116 // output).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool HasFixedPolicy() const { 206 bool HasFixedPolicy() const {
206 return basic_policy() == FIXED_SLOT || 207 return basic_policy() == FIXED_SLOT ||
207 extended_policy() == FIXED_REGISTER || 208 extended_policy() == FIXED_REGISTER ||
208 extended_policy() == FIXED_DOUBLE_REGISTER; 209 extended_policy() == FIXED_DOUBLE_REGISTER;
209 } 210 }
210 bool HasRegisterPolicy() const { 211 bool HasRegisterPolicy() const {
211 return basic_policy() == EXTENDED_POLICY && ( 212 return basic_policy() == EXTENDED_POLICY && (
212 extended_policy() == WRITABLE_REGISTER || 213 extended_policy() == WRITABLE_REGISTER ||
213 extended_policy() == MUST_HAVE_REGISTER); 214 extended_policy() == MUST_HAVE_REGISTER);
214 } 215 }
216 bool HasTempDoubleRegisterPolicy() const {
217 return basic_policy() == EXTENDED_POLICY &&
218 extended_policy() == TEMP_DOUBLE_REGISTER;
219 }
215 bool HasSameAsInputPolicy() const { 220 bool HasSameAsInputPolicy() const {
216 return basic_policy() == EXTENDED_POLICY && 221 return basic_policy() == EXTENDED_POLICY &&
217 extended_policy() == SAME_AS_FIRST_INPUT; 222 extended_policy() == SAME_AS_FIRST_INPUT;
218 } 223 }
219 bool HasFixedSlotPolicy() const { 224 bool HasFixedSlotPolicy() const {
220 return basic_policy() == FIXED_SLOT; 225 return basic_policy() == FIXED_SLOT;
221 } 226 }
222 bool HasFixedRegisterPolicy() const { 227 bool HasFixedRegisterPolicy() const {
223 return basic_policy() == EXTENDED_POLICY && 228 return basic_policy() == EXTENDED_POLICY &&
224 extended_policy() == FIXED_REGISTER; 229 extended_policy() == FIXED_REGISTER;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 private: 774 private:
770 LChunk* chunk_; 775 LChunk* chunk_;
771 776
772 DISALLOW_COPY_AND_ASSIGN(LPhase); 777 DISALLOW_COPY_AND_ASSIGN(LPhase);
773 }; 778 };
774 779
775 780
776 } } // namespace v8::internal 781 } } // namespace v8::internal
777 782
778 #endif // V8_LITHIUM_H_ 783 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698