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

Side by Side Diff: src/register-allocator.h

Issue 606063: Make class BitField able to use 32 bits of a uint32.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/objects.h ('k') | src/utils.h » ('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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Move this result to a specified register. The register is spilled from 134 // Move this result to a specified register. The register is spilled from
135 // the frame, and the register is singly-referenced (by this result) 135 // the frame, and the register is singly-referenced (by this result)
136 // outside the frame. 136 // outside the frame.
137 void ToRegister(Register reg); 137 void ToRegister(Register reg);
138 138
139 private: 139 private:
140 uint32_t value_; 140 uint32_t value_;
141 141
142 class TypeField: public BitField<Type, 0, 2> {}; 142 class TypeField: public BitField<Type, 0, 2> {};
143 class NumberInfoField : public BitField<NumberInfo::Type, 2, 3> {}; 143 class NumberInfoField : public BitField<NumberInfo::Type, 2, 3> {};
144 class DataField: public BitField<uint32_t, 5, 32 - 6> {}; 144 class DataField: public BitField<uint32_t, 5, 32 - 5> {};
145 145
146 inline void CopyTo(Result* destination) const; 146 inline void CopyTo(Result* destination) const;
147 147
148 friend class CodeGeneratorScope; 148 friend class CodeGeneratorScope;
149 }; 149 };
150 150
151 151
152 // ------------------------------------------------------------------------- 152 // -------------------------------------------------------------------------
153 // Register file 153 // Register file
154 // 154 //
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 private: 293 private:
294 CodeGenerator* cgen_; 294 CodeGenerator* cgen_;
295 RegisterFile registers_; 295 RegisterFile registers_;
296 }; 296 };
297 297
298 } } // namespace v8::internal 298 } } // namespace v8::internal
299 299
300 #endif // V8_REGISTER_ALLOCATOR_H_ 300 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698