OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5378 InlineCacheHolderFlag holder = OWN_MAP); | 5378 InlineCacheHolderFlag holder = OWN_MAP); |
5379 | 5379 |
5380 static inline Flags ComputeMonomorphicFlags( | 5380 static inline Flags ComputeMonomorphicFlags( |
5381 Kind kind, | 5381 Kind kind, |
5382 ExtraICState extra_ic_state = kNoExtraICState, | 5382 ExtraICState extra_ic_state = kNoExtraICState, |
5383 InlineCacheHolderFlag holder = OWN_MAP, | 5383 InlineCacheHolderFlag holder = OWN_MAP, |
5384 StubType type = NORMAL); | 5384 StubType type = NORMAL); |
5385 | 5385 |
5386 static inline Flags ComputeHandlerFlags( | 5386 static inline Flags ComputeHandlerFlags( |
5387 Kind handler_kind, | 5387 Kind handler_kind, |
5388 ExtraICState extra_ic_state = kNoExtraICState, | |
5389 StubType type = NORMAL, | 5388 StubType type = NORMAL, |
Igor Sheludko
2014/02/14 15:03:40
Do we really need type and holder parameters for h
| |
5390 InlineCacheHolderFlag holder = OWN_MAP); | 5389 InlineCacheHolderFlag holder = OWN_MAP); |
5391 | 5390 |
5392 static inline InlineCacheState ExtractICStateFromFlags(Flags flags); | 5391 static inline InlineCacheState ExtractICStateFromFlags(Flags flags); |
5393 static inline StubType ExtractTypeFromFlags(Flags flags); | 5392 static inline StubType ExtractTypeFromFlags(Flags flags); |
5394 static inline Kind ExtractKindFromFlags(Flags flags); | 5393 static inline Kind ExtractKindFromFlags(Flags flags); |
5395 static inline InlineCacheHolderFlag ExtractCacheHolderFromFlags(Flags flags); | 5394 static inline InlineCacheHolderFlag ExtractCacheHolderFromFlags(Flags flags); |
5396 static inline ExtraICState ExtractExtraICStateFromFlags(Flags flags); | 5395 static inline ExtraICState ExtractExtraICStateFromFlags(Flags flags); |
5397 | 5396 |
5398 static inline Flags RemoveTypeFromFlags(Flags flags); | 5397 static inline Flags RemoveTypeFromFlags(Flags flags); |
5399 | 5398 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5606 kSafepointTableOffsetBitCount> {}; // NOLINT | 5605 kSafepointTableOffsetBitCount> {}; // NOLINT |
5607 class StubMajorKeyField: public BitField<int, | 5606 class StubMajorKeyField: public BitField<int, |
5608 kStubMajorKeyFirstBit, kStubMajorKeyBits> {}; // NOLINT | 5607 kStubMajorKeyFirstBit, kStubMajorKeyBits> {}; // NOLINT |
5609 | 5608 |
5610 // KindSpecificFlags2 layout (FUNCTION) | 5609 // KindSpecificFlags2 layout (FUNCTION) |
5611 class BackEdgeTableOffsetField: public BitField<int, | 5610 class BackEdgeTableOffsetField: public BitField<int, |
5612 kIsCrankshaftedBit + 1, 29> {}; // NOLINT | 5611 kIsCrankshaftedBit + 1, 29> {}; // NOLINT |
5613 class BackEdgesPatchedForOSRField: public BitField<bool, | 5612 class BackEdgesPatchedForOSRField: public BitField<bool, |
5614 kIsCrankshaftedBit + 1 + 29, 1> {}; // NOLINT | 5613 kIsCrankshaftedBit + 1 + 29, 1> {}; // NOLINT |
5615 | 5614 |
5616 class HandlerKindField: public BitField<Kind, 17, 4> {}; | |
5617 | |
5618 static const int kArgumentsBits = 16; | 5615 static const int kArgumentsBits = 16; |
5619 static const int kMaxArguments = (1 << kArgumentsBits) - 1; | 5616 static const int kMaxArguments = (1 << kArgumentsBits) - 1; |
5620 | 5617 |
5621 // This constant should be encodable in an ARM instruction. | 5618 // This constant should be encodable in an ARM instruction. |
5622 static const int kFlagsNotUsedInLookup = | 5619 static const int kFlagsNotUsedInLookup = |
5623 TypeField::kMask | CacheHolderField::kMask; | 5620 TypeField::kMask | CacheHolderField::kMask; |
5624 | 5621 |
5625 private: | 5622 private: |
5626 friend class RelocIterator; | 5623 friend class RelocIterator; |
5627 | 5624 |
(...skipping 5128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10756 } else { | 10753 } else { |
10757 value &= ~(1 << bit_position); | 10754 value &= ~(1 << bit_position); |
10758 } | 10755 } |
10759 return value; | 10756 return value; |
10760 } | 10757 } |
10761 }; | 10758 }; |
10762 | 10759 |
10763 } } // namespace v8::internal | 10760 } } // namespace v8::internal |
10764 | 10761 |
10765 #endif // V8_OBJECTS_H_ | 10762 #endif // V8_OBJECTS_H_ |
OLD | NEW |