OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |