| 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 void HLoadNamedField::PrintDataTo(StringStream* stream) { | 1280 void HLoadNamedField::PrintDataTo(StringStream* stream) { |
| 1281 object()->PrintNameTo(stream); | 1281 object()->PrintNameTo(stream); |
| 1282 stream->Add(" @%d%s", offset(), is_in_object() ? "[in-object]" : ""); | 1282 stream->Add(" @%d%s", offset(), is_in_object() ? "[in-object]" : ""); |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 | 1285 |
| 1286 HLoadNamedFieldPolymorphic::HLoadNamedFieldPolymorphic(HValue* context, | 1286 HLoadNamedFieldPolymorphic::HLoadNamedFieldPolymorphic(HValue* context, |
| 1287 HValue* object, | 1287 HValue* object, |
| 1288 ZoneMapList* types, | 1288 ZoneMapList* types, |
| 1289 Handle<String> name) | 1289 Handle<String> name) |
| 1290 : types_(Min(types->length(), kMaxLoadPolymorphism)), | 1290 : types_(ZONE, Min(types->length(), kMaxLoadPolymorphism)), |
| 1291 name_(name), | 1291 name_(name), |
| 1292 need_generic_(false) { | 1292 need_generic_(false) { |
| 1293 SetOperandAt(0, context); | 1293 SetOperandAt(0, context); |
| 1294 SetOperandAt(1, object); | 1294 SetOperandAt(1, object); |
| 1295 set_representation(Representation::Tagged()); | 1295 set_representation(Representation::Tagged()); |
| 1296 SetFlag(kDependsOnMaps); | 1296 SetFlag(kDependsOnMaps); |
| 1297 for (int i = 0; | 1297 for (int i = 0; |
| 1298 i < types->length() && types_.length() < kMaxLoadPolymorphism; | 1298 i < types->length() && types_.length() < kMaxLoadPolymorphism; |
| 1299 ++i) { | 1299 ++i) { |
| 1300 Handle<Map> map = types->at(i); | 1300 Handle<Map> map = types->at(i); |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 | 1812 |
| 1813 | 1813 |
| 1814 void HCheckPrototypeMaps::Verify() { | 1814 void HCheckPrototypeMaps::Verify() { |
| 1815 HInstruction::Verify(); | 1815 HInstruction::Verify(); |
| 1816 ASSERT(HasNoUses()); | 1816 ASSERT(HasNoUses()); |
| 1817 } | 1817 } |
| 1818 | 1818 |
| 1819 #endif | 1819 #endif |
| 1820 | 1820 |
| 1821 } } // namespace v8::internal | 1821 } } // namespace v8::internal |
| OLD | NEW |