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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 SetOperandAt(0, context); | 1408 SetOperandAt(0, context); |
1409 SetOperandAt(1, object); | 1409 SetOperandAt(1, object); |
1410 set_representation(Representation::Tagged()); | 1410 set_representation(Representation::Tagged()); |
1411 SetGVNFlag(kDependsOnMaps); | 1411 SetGVNFlag(kDependsOnMaps); |
1412 for (int i = 0; | 1412 for (int i = 0; |
1413 i < types->length() && types_.length() < kMaxLoadPolymorphism; | 1413 i < types->length() && types_.length() < kMaxLoadPolymorphism; |
1414 ++i) { | 1414 ++i) { |
1415 Handle<Map> map = types->at(i); | 1415 Handle<Map> map = types->at(i); |
1416 LookupResult lookup(map->GetIsolate()); | 1416 LookupResult lookup(map->GetIsolate()); |
1417 map->LookupInDescriptors(NULL, *name, &lookup); | 1417 map->LookupInDescriptors(NULL, *name, &lookup); |
1418 if (lookup.IsProperty()) { | 1418 if (lookup.IsFound()) { |
1419 switch (lookup.type()) { | 1419 switch (lookup.type()) { |
1420 case FIELD: { | 1420 case FIELD: { |
1421 int index = lookup.GetLocalFieldIndexFromMap(*map); | 1421 int index = lookup.GetLocalFieldIndexFromMap(*map); |
1422 if (index < 0) { | 1422 if (index < 0) { |
1423 SetGVNFlag(kDependsOnInobjectFields); | 1423 SetGVNFlag(kDependsOnInobjectFields); |
1424 } else { | 1424 } else { |
1425 SetGVNFlag(kDependsOnBackingStoreFields); | 1425 SetGVNFlag(kDependsOnBackingStoreFields); |
1426 } | 1426 } |
1427 types_.Add(types->at(i)); | 1427 types_.Add(types->at(i)); |
1428 break; | 1428 break; |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 | 2129 |
2130 | 2130 |
2131 void HCheckPrototypeMaps::Verify() { | 2131 void HCheckPrototypeMaps::Verify() { |
2132 HInstruction::Verify(); | 2132 HInstruction::Verify(); |
2133 ASSERT(HasNoUses()); | 2133 ASSERT(HasNoUses()); |
2134 } | 2134 } |
2135 | 2135 |
2136 #endif | 2136 #endif |
2137 | 2137 |
2138 } } // namespace v8::internal | 2138 } } // namespace v8::internal |
OLD | NEW |