• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/JavaScriptCore-7600.1.17/runtime/

Lines Matching refs:offset

52 inline void checkOffset(PropertyOffset offset)
54 UNUSED_PARAM(offset);
55 ASSERT(offset >= invalidOffset);
58 inline void checkOffset(PropertyOffset offset, int inlineCapacity)
60 UNUSED_PARAM(offset);
62 ASSERT(offset >= invalidOffset);
63 ASSERT(offset == invalidOffset
64 || offset < inlineCapacity
65 || isOutOfLineOffset(offset));
68 inline void validateOffset(PropertyOffset offset)
70 checkOffset(offset);
71 ASSERT(isValidOffset(offset));
74 inline void validateOffset(PropertyOffset offset, int inlineCapacity)
76 checkOffset(offset, inlineCapacity);
77 ASSERT(isValidOffset(offset));
80 inline bool isValidOffset(PropertyOffset offset)
82 checkOffset(offset);
83 return offset != invalidOffset;
86 inline bool isInlineOffset(PropertyOffset offset)
88 checkOffset(offset);
89 return offset < firstOutOfLineOffset;
92 inline bool isOutOfLineOffset(PropertyOffset offset)
94 checkOffset(offset);
95 return !isInlineOffset(offset);
98 inline size_t offsetInInlineStorage(PropertyOffset offset)
100 validateOffset(offset);
101 ASSERT(isInlineOffset(offset));
102 return offset;
105 inline size_t offsetInOutOfLineStorage(PropertyOffset offset)
107 validateOffset(offset);
108 ASSERT(isOutOfLineOffset(offset));
109 return -static_cast<ptrdiff_t>(offset - firstOutOfLineOffset) - 1;
112 inline size_t offsetInRespectiveStorage(PropertyOffset offset)
114 if (isInlineOffset(offset))
115 return offsetInInlineStorage(offset);
116 return offsetInOutOfLineStorage(offset);
119 inline size_t numberOfOutOfLineSlotsForLastOffset(PropertyOffset offset)
121 checkOffset(offset);
122 if (offset < firstOutOfLineOffset)
124 return offset - firstOutOfLineOffset + 1;
127 inline size_t numberOfSlotsForLastOffset(PropertyOffset offset, int inlineCapacity)
129 checkOffset(offset, inlineCapacity);
130 if (offset < inlineCapacity)
131 return offset + 1;
132 return inlineCapacity + numberOfOutOfLineSlotsForLastOffset(offset);
137 PropertyOffset offset = propertyNumber;
138 if (offset >= inlineCapacity) {
139 offset += firstOutOfLineOffset;
140 offset -= inlineCapacity;
142 return offset;