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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 | 1256 |
1257 | 1257 |
1258 void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) { | 1258 void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) { |
1259 object()->PrintNameTo(stream); | 1259 object()->PrintNameTo(stream); |
1260 stream->Add("["); | 1260 stream->Add("["); |
1261 key()->PrintNameTo(stream); | 1261 key()->PrintNameTo(stream); |
1262 stream->Add("]"); | 1262 stream->Add("]"); |
1263 } | 1263 } |
1264 | 1264 |
1265 | 1265 |
| 1266 bool HLoadKeyedFastElement::check_hole_value() const { |
| 1267 for (HUseIterator it(uses()); !it.Done(); it.Advance()) { |
| 1268 HValue* use = it.value(); |
| 1269 if (!use->IsChange()) return true; |
| 1270 } |
| 1271 return false; |
| 1272 } |
| 1273 |
| 1274 |
1266 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) { | 1275 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) { |
1267 object()->PrintNameTo(stream); | 1276 object()->PrintNameTo(stream); |
1268 stream->Add("["); | 1277 stream->Add("["); |
1269 key()->PrintNameTo(stream); | 1278 key()->PrintNameTo(stream); |
1270 stream->Add("]"); | 1279 stream->Add("]"); |
1271 } | 1280 } |
1272 | 1281 |
1273 | 1282 |
1274 void HLoadKeyedSpecializedArrayElement::PrintDataTo( | 1283 void HLoadKeyedSpecializedArrayElement::PrintDataTo( |
1275 StringStream* stream) { | 1284 StringStream* stream) { |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 | 1695 |
1687 | 1696 |
1688 void HCheckPrototypeMaps::Verify() { | 1697 void HCheckPrototypeMaps::Verify() { |
1689 HInstruction::Verify(); | 1698 HInstruction::Verify(); |
1690 ASSERT(HasNoUses()); | 1699 ASSERT(HasNoUses()); |
1691 } | 1700 } |
1692 | 1701 |
1693 #endif | 1702 #endif |
1694 | 1703 |
1695 } } // namespace v8::internal | 1704 } } // namespace v8::internal |
OLD | NEW |