| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 } | 246 } |
| 247 | 247 |
| 248 // Encode type, copied, synced and data in one 32 bit integer. | 248 // Encode type, copied, synced and data in one 32 bit integer. |
| 249 uint32_t value_; | 249 uint32_t value_; |
| 250 | 250 |
| 251 // Declare BitFields with template parameters <type, start, size>. | 251 // Declare BitFields with template parameters <type, start, size>. |
| 252 class TypeField: public BitField<Type, 0, 3> {}; | 252 class TypeField: public BitField<Type, 0, 3> {}; |
| 253 class CopiedField: public BitField<bool, 3, 1> {}; | 253 class CopiedField: public BitField<bool, 3, 1> {}; |
| 254 class SyncedField: public BitField<bool, 4, 1> {}; | 254 class SyncedField: public BitField<bool, 4, 1> {}; |
| 255 class UntaggedInt32Field: public BitField<bool, 5, 1> {}; | 255 class UntaggedInt32Field: public BitField<bool, 5, 1> {}; |
| 256 class TypeInfoField: public BitField<int, 6, 6> {}; | 256 class TypeInfoField: public BitField<int, 6, 7> {}; |
| 257 class DataField: public BitField<uint32_t, 12, 32 - 12> {}; | 257 class DataField: public BitField<uint32_t, 13, 32 - 13> {}; |
| 258 | 258 |
| 259 friend class VirtualFrame; | 259 friend class VirtualFrame; |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } } // namespace v8::internal | 262 } } // namespace v8::internal |
| 263 | 263 |
| 264 #endif // V8_FRAME_ELEMENT_H_ | 264 #endif // V8_FRAME_ELEMENT_H_ |
| OLD | NEW |