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

Side by Side Diff: src/objects.h

Issue 8065006: Move the is_pregenerated flag so it does not overlap other flags. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3870 matching lines...) Expand 10 before | Expand all | Expand 10 after
3881 3881
3882 // Flags layout. BitField<type, shift, size>. 3882 // Flags layout. BitField<type, shift, size>.
3883 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; 3883 class ICStateField: public BitField<InlineCacheState, 0, 3> {};
3884 class TypeField: public BitField<PropertyType, 3, 4> {}; 3884 class TypeField: public BitField<PropertyType, 3, 4> {};
3885 class KindField: public BitField<Kind, 7, 4> {}; 3885 class KindField: public BitField<Kind, 7, 4> {};
3886 class CacheHolderField: public BitField<InlineCacheHolderFlag, 11, 1> {}; 3886 class CacheHolderField: public BitField<InlineCacheHolderFlag, 11, 1> {};
3887 class ExtraICStateField: public BitField<ExtraICState, 12, 2> {}; 3887 class ExtraICStateField: public BitField<ExtraICState, 12, 2> {};
3888 class IsPregeneratedField: public BitField<bool, 14, 1> {}; 3888 class IsPregeneratedField: public BitField<bool, 14, 1> {};
3889 3889
3890 // Signed field cannot be encoded using the BitField class. 3890 // Signed field cannot be encoded using the BitField class.
3891 static const int kArgumentsCountShift = 14; 3891 static const int kArgumentsCountShift = 15;
3892 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1); 3892 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1);
3893 3893
3894 static const int kFlagsNotUsedInLookup = 3894 static const int kFlagsNotUsedInLookup =
3895 TypeField::kMask | CacheHolderField::kMask; 3895 TypeField::kMask | CacheHolderField::kMask;
3896 3896
3897 private: 3897 private:
3898 DISALLOW_IMPLICIT_CONSTRUCTORS(Code); 3898 DISALLOW_IMPLICIT_CONSTRUCTORS(Code);
3899 }; 3899 };
3900 3900
3901 3901
(...skipping 3653 matching lines...) Expand 10 before | Expand all | Expand 10 after
7555 } else { 7555 } else {
7556 value &= ~(1 << bit_position); 7556 value &= ~(1 << bit_position);
7557 } 7557 }
7558 return value; 7558 return value;
7559 } 7559 }
7560 }; 7560 };
7561 7561
7562 } } // namespace v8::internal 7562 } } // namespace v8::internal
7563 7563
7564 #endif // V8_OBJECTS_H_ 7564 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698