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

Side by Side Diff: src/frame-element.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/codegen.h ('k') | src/objects.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 value_ = value_ | DataField::encode(new_reg.code_); 243 value_ = value_ | DataField::encode(new_reg.code_);
244 } 244 }
245 245
246 // Encode type, copied, synced and data in one 32 bit integer. 246 // Encode type, copied, synced and data in one 32 bit integer.
247 uint32_t value_; 247 uint32_t value_;
248 248
249 class TypeField: public BitField<Type, 0, 3> {}; 249 class TypeField: public BitField<Type, 0, 3> {};
250 class CopiedField: public BitField<bool, 3, 1> {}; 250 class CopiedField: public BitField<bool, 3, 1> {};
251 class SyncedField: public BitField<bool, 4, 1> {}; 251 class SyncedField: public BitField<bool, 4, 1> {};
252 class NumberInfoField: public BitField<NumberInfo::Type, 5, 3> {}; 252 class NumberInfoField: public BitField<NumberInfo::Type, 5, 3> {};
253 class DataField: public BitField<uint32_t, 8, 32 - 9> {}; 253 class DataField: public BitField<uint32_t, 8, 32 - 8> {};
254 254
255 friend class VirtualFrame; 255 friend class VirtualFrame;
256 }; 256 };
257 257
258 } } // namespace v8::internal 258 } } // namespace v8::internal
259 259
260 #endif // V8_FRAME_ELEMENT_H_ 260 #endif // V8_FRAME_ELEMENT_H_
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698