OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); | 1183 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); |
1184 } | 1184 } |
1185 | 1185 |
1186 | 1186 |
1187 void HStoreGlobal::PrintDataTo(StringStream* stream) const { | 1187 void HStoreGlobal::PrintDataTo(StringStream* stream) const { |
1188 stream->Add("[%p] = ", *cell()); | 1188 stream->Add("[%p] = ", *cell()); |
1189 value()->PrintNameTo(stream); | 1189 value()->PrintNameTo(stream); |
1190 } | 1190 } |
1191 | 1191 |
1192 | 1192 |
| 1193 void HLoadContextSlot::PrintDataTo(StringStream* stream) const { |
| 1194 stream->Add("(%d, %d)", context_chain_length(), slot_index()); |
| 1195 } |
| 1196 |
| 1197 |
1193 // Implementation of type inference and type conversions. Calculates | 1198 // Implementation of type inference and type conversions. Calculates |
1194 // the inferred type of this instruction based on the input operands. | 1199 // the inferred type of this instruction based on the input operands. |
1195 | 1200 |
1196 HType HValue::CalculateInferredType() const { | 1201 HType HValue::CalculateInferredType() const { |
1197 return type_; | 1202 return type_; |
1198 } | 1203 } |
1199 | 1204 |
1200 | 1205 |
1201 HType HCheckMap::CalculateInferredType() const { | 1206 HType HCheckMap::CalculateInferredType() const { |
1202 return value()->type(); | 1207 return value()->type(); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 | 1442 |
1438 | 1443 |
1439 void HCheckPrototypeMaps::Verify() const { | 1444 void HCheckPrototypeMaps::Verify() const { |
1440 HInstruction::Verify(); | 1445 HInstruction::Verify(); |
1441 ASSERT(HasNoUses()); | 1446 ASSERT(HasNoUses()); |
1442 } | 1447 } |
1443 | 1448 |
1444 #endif | 1449 #endif |
1445 | 1450 |
1446 } } // namespace v8::internal | 1451 } } // namespace v8::internal |
OLD | NEW |