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

Side by Side Diff: src/frame-element.h

Issue 1249002: Add primitive type and string type to the number info.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « no previous file | src/number-info.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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 void set_reg(Register new_reg) { 256 void set_reg(Register new_reg) {
257 ASSERT(is_register()); 257 ASSERT(is_register());
258 value_ = value_ & ~DataField::mask(); 258 value_ = value_ & ~DataField::mask();
259 value_ = value_ | DataField::encode(new_reg.code_); 259 value_ = value_ | DataField::encode(new_reg.code_);
260 } 260 }
261 261
262 // Encode type, copied, synced and data in one 32 bit integer. 262 // Encode type, copied, synced and data in one 32 bit integer.
263 uint32_t value_; 263 uint32_t value_;
264 264
265 // Declare BitFields with template parameters <type, start, size>.
265 class TypeField: public BitField<Type, 0, 3> {}; 266 class TypeField: public BitField<Type, 0, 3> {};
266 class CopiedField: public BitField<bool, 3, 1> {}; 267 class CopiedField: public BitField<bool, 3, 1> {};
267 class SyncedField: public BitField<bool, 4, 1> {}; 268 class SyncedField: public BitField<bool, 4, 1> {};
268 class UntaggedInt32Field: public BitField<bool, 5, 1> {}; 269 class UntaggedInt32Field: public BitField<bool, 5, 1> {};
269 class NumberInfoField: public BitField<int, 6, 4> {}; 270 class NumberInfoField: public BitField<int, 6, 6> {};
270 class DataField: public BitField<uint32_t, 10, 32 - 10> {}; 271 class DataField: public BitField<uint32_t, 12, 32 - 12> {};
271 272
272 friend class VirtualFrame; 273 friend class VirtualFrame;
273 }; 274 };
274 275
275 } } // namespace v8::internal 276 } } // namespace v8::internal
276 277
277 #endif // V8_FRAME_ELEMENT_H_ 278 #endif // V8_FRAME_ELEMENT_H_
OLDNEW
« no previous file with comments | « no previous file | src/number-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698