Lines Matching refs:structure

124 ZoneTypeConfig::Type* ZoneTypeConfig::from_struct(Struct* structure) {
125 return reinterpret_cast<Type*>(structure);
139 Struct* structure = reinterpret_cast<Struct*>(
141 structure[0] = reinterpret_cast<void*>(tag);
142 structure[1] = reinterpret_cast<void*>(length);
143 return structure;
148 void ZoneTypeConfig::struct_shrink(Struct* structure, int length) {
149 DCHECK(0 <= length && length <= struct_length(structure));
150 structure[1] = reinterpret_cast<void*>(length);
155 int ZoneTypeConfig::struct_tag(Struct* structure) {
156 return static_cast<int>(reinterpret_cast<intptr_t>(structure[0]));
161 int ZoneTypeConfig::struct_length(Struct* structure) {
162 return static_cast<int>(reinterpret_cast<intptr_t>(structure[1]));
167 Type* ZoneTypeConfig::struct_get(Struct* structure, int i) {
168 DCHECK(0 <= i && i <= struct_length(structure));
169 return static_cast<Type*>(structure[2 + i]);
174 void ZoneTypeConfig::struct_set(Struct* structure, int i, Type* x) {
175 DCHECK(0 <= i && i <= struct_length(structure));
176 structure[2 + i] = x;
182 i::Handle<V> ZoneTypeConfig::struct_get_value(Struct* structure, int i) {
183 DCHECK(0 <= i && i <= struct_length(structure));
184 return i::Handle<V>(static_cast<V**>(structure[2 + i]));
191 Struct* structure, int i, i::Handle<V> x) {
192 DCHECK(0 <= i && i <= struct_length(structure));
193 structure[2 + i] = x.location();
274 i::Handle<Struct> structure) {
275 return i::Handle<Type>::cast(i::Handle<Object>::cast(structure));
282 i::Handle<Struct> structure = isolate->factory()->NewFixedArray(length + 1);
283 structure->set(0, i::Smi::FromInt(tag));
284 return structure;
289 void HeapTypeConfig::struct_shrink(i::Handle<Struct> structure, int length) {
290 structure->Shrink(length + 1);
295 int HeapTypeConfig::struct_tag(i::Handle<Struct> structure) {
296 return static_cast<i::Smi*>(structure->get(0))->value();
301 int HeapTypeConfig::struct_length(i::Handle<Struct> structure) {
302 return structure->length() - 1;
308 i::Handle<Struct> structure, int i) {
309 Type* type = static_cast<Type*>(structure->get(i + 1));
310 return i::handle(type, structure->GetIsolate());
316 i::Handle<Struct> structure, int i, i::Handle<Type> type) {
317 structure->set(i + 1, *type);
324 i::Handle<Struct> structure, int i) {
325 V* x = static_cast<V*>(structure->get(i + 1));
326 return i::handle(x, structure->GetIsolate());
333 i::Handle<Struct> structure, int i, i::Handle<V> x) {
334 structure->set(i + 1, *x);