• Home
  • Raw
  • Download

Lines Matching full:offset

56 #define INT_ACCESSORS(holder, name, offset)                         \  argument
57 int holder::name() const { return READ_INT_FIELD(this, offset); } \
58 void holder::set_##name(int value) { WRITE_INT_FIELD(this, offset, value); }
60 #define INT32_ACCESSORS(holder, name, offset) \ argument
61 int32_t holder::name() const { return READ_INT32_FIELD(this, offset); } \
63 WRITE_INT32_FIELD(this, offset, value); \
66 #define UINT16_ACCESSORS(holder, name, offset) \ argument
67 uint16_t holder::name() const { return READ_UINT16_FIELD(this, offset); } \
71 WRITE_UINT16_FIELD(this, offset, value); \
74 #define UINT8_ACCESSORS(holder, name, offset) \ argument
75 uint8_t holder::name() const { return READ_UINT8_FIELD(this, offset); } \
79 WRITE_UINT8_FIELD(this, offset, value); \
82 #define ACCESSORS_CHECKED2(holder, name, type, offset, get_condition, \ argument
85 type* value = type::cast(READ_FIELD(this, offset)); \
91 WRITE_FIELD(this, offset, value); \
92 CONDITIONAL_WRITE_BARRIER(this, offset, value, mode); \
94 #define ACCESSORS_CHECKED(holder, name, type, offset, condition) \ argument
95 ACCESSORS_CHECKED2(holder, name, type, offset, condition, condition)
97 #define ACCESSORS(holder, name, type, offset) \ argument
98 ACCESSORS_CHECKED(holder, name, type, offset, true)
100 #define WEAK_ACCESSORS_CHECKED2(holder, name, offset, get_condition, \ argument
103 MaybeObject* value = READ_WEAK_FIELD(this, offset); \
109 WRITE_WEAK_FIELD(this, offset, value); \
110 CONDITIONAL_WEAK_WRITE_BARRIER(this, offset, value, mode); \
113 #define WEAK_ACCESSORS_CHECKED(holder, name, offset, condition) \ argument
114 WEAK_ACCESSORS_CHECKED2(holder, name, offset, condition, condition)
116 #define WEAK_ACCESSORS(holder, name, offset) \ argument
117 WEAK_ACCESSORS_CHECKED(holder, name, offset, true)
120 #define SMI_ACCESSORS_CHECKED(holder, name, offset, condition) \ argument
123 Object* value = READ_FIELD(this, offset); \
128 WRITE_FIELD(this, offset, Smi::FromInt(value)); \
131 #define SMI_ACCESSORS(holder, name, offset) \ argument
132 SMI_ACCESSORS_CHECKED(holder, name, offset, true)
134 #define SYNCHRONIZED_SMI_ACCESSORS(holder, name, offset) \ argument
136 Object* value = ACQUIRE_READ_FIELD(this, offset); \
140 RELEASE_WRITE_FIELD(this, offset, Smi::FromInt(value)); \
143 #define RELAXED_SMI_ACCESSORS(holder, name, offset) \ argument
145 Object* value = RELAXED_READ_FIELD(this, offset); \
149 RELAXED_WRITE_FIELD(this, offset, Smi::FromInt(value)); \
152 #define BOOL_GETTER(holder, field, name, offset) \ argument
153 bool holder::name() const { return BooleanBit::get(field(), offset); }
155 #define BOOL_ACCESSORS(holder, field, name, offset) \ argument
156 bool holder::name() const { return BooleanBit::get(field(), offset); } \
158 set_##field(BooleanBit::set(field(), offset, value)); \
179 #define FIELD_ADDR(p, offset) \ argument
180 (reinterpret_cast<Address>(p) + offset - kHeapObjectTag)
182 #define READ_FIELD(p, offset) \ argument
183 (*reinterpret_cast<Object* const*>(FIELD_ADDR(p, offset)))
185 #define READ_WEAK_FIELD(p, offset) \ argument
186 (*reinterpret_cast<MaybeObject* const*>(FIELD_ADDR(p, offset)))
188 #define ACQUIRE_READ_FIELD(p, offset) \ argument
190 reinterpret_cast<const base::AtomicWord*>(FIELD_ADDR(p, offset))))
192 #define RELAXED_READ_FIELD(p, offset) \ argument
194 reinterpret_cast<const base::AtomicWord*>(FIELD_ADDR(p, offset))))
196 #define RELAXED_READ_WEAK_FIELD(p, offset) \ argument
198 reinterpret_cast<const base::AtomicWord*>(FIELD_ADDR(p, offset))))
201 #define WRITE_FIELD(p, offset, value) \ argument
203 reinterpret_cast<base::AtomicWord*>(FIELD_ADDR(p, offset)), \
205 #define WRITE_WEAK_FIELD(p, offset, value) \ argument
207 reinterpret_cast<base::AtomicWord*>(FIELD_ADDR(p, offset)), \
210 #define WRITE_FIELD(p, offset, value) \ argument
211 (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value)
212 #define WRITE_WEAK_FIELD(p, offset, value) \ argument
213 (*reinterpret_cast<MaybeObject**>(FIELD_ADDR(p, offset)) = value)
216 #define RELEASE_WRITE_FIELD(p, offset, value) \ argument
218 reinterpret_cast<base::AtomicWord*>(FIELD_ADDR(p, offset)), \
221 #define RELAXED_WRITE_FIELD(p, offset, value) \ argument
223 reinterpret_cast<base::AtomicWord*>(FIELD_ADDR(p, offset)), \
226 #define WRITE_BARRIER(object, offset, value) \ argument
229 MarkingBarrier(object, HeapObject::RawField(object, offset), value); \
230 GenerationalBarrier(object, HeapObject::RawField(object, offset), value); \
233 #define WEAK_WRITE_BARRIER(object, offset, value) \ argument
236 MarkingBarrier(object, HeapObject::RawMaybeWeakField(object, offset), \
238 GenerationalBarrier(object, HeapObject::RawMaybeWeakField(object, offset), \
242 #define CONDITIONAL_WRITE_BARRIER(object, offset, value, mode) \ argument
247 MarkingBarrier(object, HeapObject::RawField(object, offset), value); \
249 GenerationalBarrier(object, HeapObject::RawField(object, offset), \
254 #define CONDITIONAL_WEAK_WRITE_BARRIER(object, offset, value, mode) \ argument
259 MarkingBarrier(object, HeapObject::RawMaybeWeakField(object, offset), \
263 object, HeapObject::RawMaybeWeakField(object, offset), value); \
267 #define READ_DOUBLE_FIELD(p, offset) ReadDoubleValue(FIELD_ADDR(p, offset)) argument
269 #define WRITE_DOUBLE_FIELD(p, offset, value) \ argument
270 WriteDoubleValue(FIELD_ADDR(p, offset), value)
272 #define READ_INT_FIELD(p, offset) \ argument
273 (*reinterpret_cast<const int*>(FIELD_ADDR(p, offset)))
275 #define WRITE_INT_FIELD(p, offset, value) \ argument
276 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value)
278 #define RELAXED_READ_INTPTR_FIELD(p, offset) \ argument
280 reinterpret_cast<const base::AtomicWord*>(FIELD_ADDR(p, offset))))
282 #define READ_INTPTR_FIELD(p, offset) \ argument
283 (*reinterpret_cast<const intptr_t*>(FIELD_ADDR(p, offset)))
285 #define RELAXED_WRITE_INTPTR_FIELD(p, offset, value) \ argument
287 reinterpret_cast<base::AtomicWord*>(FIELD_ADDR(p, offset)), \
290 #define WRITE_INTPTR_FIELD(p, offset, value) \ argument
291 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)) = value)
293 #define READ_UINT8_FIELD(p, offset) \ argument
294 (*reinterpret_cast<const uint8_t*>(FIELD_ADDR(p, offset)))
296 #define WRITE_UINT8_FIELD(p, offset, value) \ argument
297 (*reinterpret_cast<uint8_t*>(FIELD_ADDR(p, offset)) = value)
299 #define RELAXED_WRITE_INT8_FIELD(p, offset, value) \ argument
300 base::Relaxed_Store(reinterpret_cast<base::Atomic8*>(FIELD_ADDR(p, offset)), \
303 #define READ_INT8_FIELD(p, offset) \ argument
304 (*reinterpret_cast<const int8_t*>(FIELD_ADDR(p, offset)))
306 #define RELAXED_READ_INT8_FIELD(p, offset) \ argument
308 reinterpret_cast<const base::Atomic8*>(FIELD_ADDR(p, offset))))
310 #define WRITE_INT8_FIELD(p, offset, value) \ argument
311 (*reinterpret_cast<int8_t*>(FIELD_ADDR(p, offset)) = value)
313 #define READ_UINT16_FIELD(p, offset) \ argument
314 (*reinterpret_cast<const uint16_t*>(FIELD_ADDR(p, offset)))
316 #define WRITE_UINT16_FIELD(p, offset, value) \ argument
317 (*reinterpret_cast<uint16_t*>(FIELD_ADDR(p, offset)) = value)
319 #define READ_INT16_FIELD(p, offset) \ argument
320 (*reinterpret_cast<const int16_t*>(FIELD_ADDR(p, offset)))
322 #define WRITE_INT16_FIELD(p, offset, value) \ argument
323 (*reinterpret_cast<int16_t*>(FIELD_ADDR(p, offset)) = value)
325 #define READ_UINT32_FIELD(p, offset) \ argument
326 (*reinterpret_cast<const uint32_t*>(FIELD_ADDR(p, offset)))
328 #define WRITE_UINT32_FIELD(p, offset, value) \ argument
329 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset)) = value)
331 #define READ_INT32_FIELD(p, offset) \ argument
332 (*reinterpret_cast<const int32_t*>(FIELD_ADDR(p, offset)))
334 #define WRITE_INT32_FIELD(p, offset, value) \ argument
335 (*reinterpret_cast<int32_t*>(FIELD_ADDR(p, offset)) = value)
337 #define READ_FLOAT_FIELD(p, offset) \ argument
338 (*reinterpret_cast<const float*>(FIELD_ADDR(p, offset)))
340 #define WRITE_FLOAT_FIELD(p, offset, value) \ argument
341 (*reinterpret_cast<float*>(FIELD_ADDR(p, offset)) = value)
343 #define READ_UINT64_FIELD(p, offset) \ argument
344 (*reinterpret_cast<const uint64_t*>(FIELD_ADDR(p, offset)))
346 #define WRITE_UINT64_FIELD(p, offset, value) \ argument
347 (*reinterpret_cast<uint64_t*>(FIELD_ADDR(p, offset)) = value)
349 #define READ_INT64_FIELD(p, offset) \ argument
350 (*reinterpret_cast<const int64_t*>(FIELD_ADDR(p, offset)))
352 #define WRITE_INT64_FIELD(p, offset, value) \ argument
353 (*reinterpret_cast<int64_t*>(FIELD_ADDR(p, offset)) = value)
355 #define READ_BYTE_FIELD(p, offset) \ argument
356 (*reinterpret_cast<const byte*>(FIELD_ADDR(p, offset)))
358 #define RELAXED_READ_BYTE_FIELD(p, offset) \ argument
360 reinterpret_cast<const base::Atomic8*>(FIELD_ADDR(p, offset))))
362 #define WRITE_BYTE_FIELD(p, offset, value) \ argument
363 (*reinterpret_cast<byte*>(FIELD_ADDR(p, offset)) = value)
365 #define RELAXED_WRITE_BYTE_FIELD(p, offset, value) \ argument
366 base::Relaxed_Store(reinterpret_cast<base::Atomic8*>(FIELD_ADDR(p, offset)), \
383 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \
386 set(IndexForEntry(i) + k##name##Offset, value); \