| 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 | 719 |
| 720 void HTypeofIs::PrintDataTo(StringStream* stream) { | 720 void HTypeofIs::PrintDataTo(StringStream* stream) { |
| 721 value()->PrintNameTo(stream); | 721 value()->PrintNameTo(stream); |
| 722 stream->Add(" == "); | 722 stream->Add(" == "); |
| 723 stream->Add(type_literal_->ToAsciiVector()); | 723 stream->Add(type_literal_->ToAsciiVector()); |
| 724 } | 724 } |
| 725 | 725 |
| 726 | 726 |
| 727 void HChange::PrintDataTo(StringStream* stream) { | 727 void HChange::PrintDataTo(StringStream* stream) { |
| 728 HUnaryOperation::PrintDataTo(stream); | 728 HUnaryOperation::PrintDataTo(stream); |
| 729 stream->Add(" %s to %s", from_.Mnemonic(), to().Mnemonic()); | 729 stream->Add(" %s to %s", from_.Mnemonic(), to_.Mnemonic()); |
| 730 | 730 |
| 731 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); | 731 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); |
| 732 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); | 732 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); |
| 733 } | 733 } |
| 734 | 734 |
| 735 | 735 |
| 736 HCheckInstanceType* HCheckInstanceType::NewIsJSObjectOrJSFunction( | 736 HCheckInstanceType* HCheckInstanceType::NewIsJSObjectOrJSFunction( |
| 737 HValue* value) { | 737 HValue* value) { |
| 738 STATIC_ASSERT((LAST_JS_OBJECT_TYPE + 1) == JS_FUNCTION_TYPE); | 738 STATIC_ASSERT((LAST_JS_OBJECT_TYPE + 1) == JS_FUNCTION_TYPE); |
| 739 return new HCheckInstanceType(value, FIRST_JS_OBJECT_TYPE, JS_FUNCTION_TYPE); | 739 return new HCheckInstanceType(value, FIRST_JS_OBJECT_TYPE, JS_FUNCTION_TYPE); |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 stream->Add("pixel"); | 1335 stream->Add("pixel"); |
| 1336 break; | 1336 break; |
| 1337 } | 1337 } |
| 1338 stream->Add("["); | 1338 stream->Add("["); |
| 1339 key()->PrintNameTo(stream); | 1339 key()->PrintNameTo(stream); |
| 1340 stream->Add("] = "); | 1340 stream->Add("] = "); |
| 1341 value()->PrintNameTo(stream); | 1341 value()->PrintNameTo(stream); |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 | 1344 |
| 1345 void HLoadGlobalCell::PrintDataTo(StringStream* stream) { | 1345 void HLoadGlobal::PrintDataTo(StringStream* stream) { |
| 1346 stream->Add("[%p]", *cell()); | 1346 stream->Add("[%p]", *cell()); |
| 1347 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); | 1347 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 | 1350 |
| 1351 void HLoadGlobalGeneric::PrintDataTo(StringStream* stream) { | 1351 void HStoreGlobal::PrintDataTo(StringStream* stream) { |
| 1352 stream->Add("%o ", *name()); | |
| 1353 } | |
| 1354 | |
| 1355 | |
| 1356 void HStoreGlobalCell::PrintDataTo(StringStream* stream) { | |
| 1357 stream->Add("[%p] = ", *cell()); | 1352 stream->Add("[%p] = ", *cell()); |
| 1358 value()->PrintNameTo(stream); | 1353 value()->PrintNameTo(stream); |
| 1359 } | 1354 } |
| 1360 | 1355 |
| 1361 | 1356 |
| 1362 void HStoreGlobalGeneric::PrintDataTo(StringStream* stream) { | |
| 1363 stream->Add("%o = ", *name()); | |
| 1364 value()->PrintNameTo(stream); | |
| 1365 } | |
| 1366 | |
| 1367 | |
| 1368 void HLoadContextSlot::PrintDataTo(StringStream* stream) { | 1357 void HLoadContextSlot::PrintDataTo(StringStream* stream) { |
| 1369 value()->PrintNameTo(stream); | 1358 value()->PrintNameTo(stream); |
| 1370 stream->Add("[%d]", slot_index()); | 1359 stream->Add("[%d]", slot_index()); |
| 1371 } | 1360 } |
| 1372 | 1361 |
| 1373 | 1362 |
| 1374 void HStoreContextSlot::PrintDataTo(StringStream* stream) { | 1363 void HStoreContextSlot::PrintDataTo(StringStream* stream) { |
| 1375 context()->PrintNameTo(stream); | 1364 context()->PrintNameTo(stream); |
| 1376 stream->Add("[%d] = ", slot_index()); | 1365 stream->Add("[%d] = ", slot_index()); |
| 1377 value()->PrintNameTo(stream); | 1366 value()->PrintNameTo(stream); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 | 1619 |
| 1631 | 1620 |
| 1632 void HCheckPrototypeMaps::Verify() { | 1621 void HCheckPrototypeMaps::Verify() { |
| 1633 HInstruction::Verify(); | 1622 HInstruction::Verify(); |
| 1634 ASSERT(HasNoUses()); | 1623 ASSERT(HasNoUses()); |
| 1635 } | 1624 } |
| 1636 | 1625 |
| 1637 #endif | 1626 #endif |
| 1638 | 1627 |
| 1639 } } // namespace v8::internal | 1628 } } // namespace v8::internal |
| OLD | NEW |