Chromium Code Reviews| 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 782 | 782 |
| 783 void HChange::PrintDataTo(StringStream* stream) { | 783 void HChange::PrintDataTo(StringStream* stream) { |
| 784 HUnaryOperation::PrintDataTo(stream); | 784 HUnaryOperation::PrintDataTo(stream); |
| 785 stream->Add(" %s to %s", from_.Mnemonic(), to().Mnemonic()); | 785 stream->Add(" %s to %s", from_.Mnemonic(), to().Mnemonic()); |
| 786 | 786 |
| 787 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); | 787 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); |
| 788 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); | 788 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); |
| 789 } | 789 } |
| 790 | 790 |
| 791 | 791 |
| 792 void HJSArrayLength::PrintDataTo(StringStream* stream) { | |
| 793 value()->PrintNameTo(stream); | |
| 794 stream->Add(" "); | |
|
Jakob Kummerow
2011/09/05 13:23:33
How about inserting some descriptive hint here, e.
| |
| 795 typecheck()->PrintNameTo(stream); | |
| 796 } | |
| 797 | |
| 798 | |
| 792 HValue* HCheckInstanceType::Canonicalize() { | 799 HValue* HCheckInstanceType::Canonicalize() { |
| 793 if (check_ == IS_STRING && | 800 if (check_ == IS_STRING && |
| 794 !value()->type().IsUninitialized() && | 801 !value()->type().IsUninitialized() && |
| 795 value()->type().IsString()) { | 802 value()->type().IsString()) { |
| 796 return NULL; | 803 return NULL; |
| 797 } | 804 } |
| 798 if (check_ == IS_SYMBOL && | 805 if (check_ == IS_SYMBOL && |
| 799 value()->IsConstant() && | 806 value()->IsConstant() && |
| 800 HConstant::cast(value())->handle()->IsSymbol()) { | 807 HConstant::cast(value())->handle()->IsSymbol()) { |
| 801 return NULL; | 808 return NULL; |
| (...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1872 | 1879 |
| 1873 | 1880 |
| 1874 void HCheckPrototypeMaps::Verify() { | 1881 void HCheckPrototypeMaps::Verify() { |
| 1875 HInstruction::Verify(); | 1882 HInstruction::Verify(); |
| 1876 ASSERT(HasNoUses()); | 1883 ASSERT(HasNoUses()); |
| 1877 } | 1884 } |
| 1878 | 1885 |
| 1879 #endif | 1886 #endif |
| 1880 | 1887 |
| 1881 } } // namespace v8::internal | 1888 } } // namespace v8::internal |
| OLD | NEW |