OLD | NEW |
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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 name_(name), | 1383 name_(name), |
1384 need_generic_(false) { | 1384 need_generic_(false) { |
1385 SetOperandAt(0, context); | 1385 SetOperandAt(0, context); |
1386 SetOperandAt(1, object); | 1386 SetOperandAt(1, object); |
1387 set_representation(Representation::Tagged()); | 1387 set_representation(Representation::Tagged()); |
1388 SetFlag(kDependsOnMaps); | 1388 SetFlag(kDependsOnMaps); |
1389 for (int i = 0; | 1389 for (int i = 0; |
1390 i < types->length() && types_.length() < kMaxLoadPolymorphism; | 1390 i < types->length() && types_.length() < kMaxLoadPolymorphism; |
1391 ++i) { | 1391 ++i) { |
1392 Handle<Map> map = types->at(i); | 1392 Handle<Map> map = types->at(i); |
1393 LookupResult lookup; | 1393 LookupResult lookup(map->GetIsolate()); |
1394 map->LookupInDescriptors(NULL, *name, &lookup); | 1394 map->LookupInDescriptors(NULL, *name, &lookup); |
1395 if (lookup.IsProperty()) { | 1395 if (lookup.IsProperty()) { |
1396 switch (lookup.type()) { | 1396 switch (lookup.type()) { |
1397 case FIELD: { | 1397 case FIELD: { |
1398 int index = lookup.GetLocalFieldIndexFromMap(*map); | 1398 int index = lookup.GetLocalFieldIndexFromMap(*map); |
1399 if (index < 0) { | 1399 if (index < 0) { |
1400 SetFlag(kDependsOnInobjectFields); | 1400 SetFlag(kDependsOnInobjectFields); |
1401 } else { | 1401 } else { |
1402 SetFlag(kDependsOnBackingStoreFields); | 1402 SetFlag(kDependsOnBackingStoreFields); |
1403 } | 1403 } |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 | 1964 |
1965 | 1965 |
1966 void HCheckPrototypeMaps::Verify() { | 1966 void HCheckPrototypeMaps::Verify() { |
1967 HInstruction::Verify(); | 1967 HInstruction::Verify(); |
1968 ASSERT(HasNoUses()); | 1968 ASSERT(HasNoUses()); |
1969 } | 1969 } |
1970 | 1970 |
1971 #endif | 1971 #endif |
1972 | 1972 |
1973 } } // namespace v8::internal | 1973 } } // namespace v8::internal |
OLD | NEW |