| 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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 stream->Add(" "); | 1224 stream->Add(" "); |
| 1225 HBinaryOperation::PrintDataTo(stream); | 1225 HBinaryOperation::PrintDataTo(stream); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 | 1228 |
| 1229 void HCompare::SetInputRepresentation(Representation r) { | 1229 void HCompare::SetInputRepresentation(Representation r) { |
| 1230 input_representation_ = r; | 1230 input_representation_ = r; |
| 1231 if (r.IsTagged()) { | 1231 if (r.IsTagged()) { |
| 1232 SetAllSideEffects(); | 1232 SetAllSideEffects(); |
| 1233 ClearFlag(kUseGVN); | 1233 ClearFlag(kUseGVN); |
| 1234 } else if (r.IsDouble()) { |
| 1235 SetFlag(kDeoptimizeOnUndefined); |
| 1236 ClearAllSideEffects(); |
| 1237 SetFlag(kUseGVN); |
| 1234 } else { | 1238 } else { |
| 1235 ClearAllSideEffects(); | 1239 ClearAllSideEffects(); |
| 1236 SetFlag(kUseGVN); | 1240 SetFlag(kUseGVN); |
| 1237 } | 1241 } |
| 1238 } | 1242 } |
| 1239 | 1243 |
| 1240 | 1244 |
| 1241 void HParameter::PrintDataTo(StringStream* stream) { | 1245 void HParameter::PrintDataTo(StringStream* stream) { |
| 1242 stream->Add("%u", index()); | 1246 stream->Add("%u", index()); |
| 1243 } | 1247 } |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1759 | 1763 |
| 1760 | 1764 |
| 1761 void HCheckPrototypeMaps::Verify() { | 1765 void HCheckPrototypeMaps::Verify() { |
| 1762 HInstruction::Verify(); | 1766 HInstruction::Verify(); |
| 1763 ASSERT(HasNoUses()); | 1767 ASSERT(HasNoUses()); |
| 1764 } | 1768 } |
| 1765 | 1769 |
| 1766 #endif | 1770 #endif |
| 1767 | 1771 |
| 1768 } } // namespace v8::internal | 1772 } } // namespace v8::internal |
| OLD | NEW |