Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/hydrogen-instructions.cc

Issue 7044049: Add boolean flag to HChange and LNumberUntagD to not convert undefined to NaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add regression test, change test status. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 stream->Add(" "); 1233 stream->Add(" ");
1234 HBinaryOperation::PrintDataTo(stream); 1234 HBinaryOperation::PrintDataTo(stream);
1235 } 1235 }
1236 1236
1237 1237
1238 void HCompare::SetInputRepresentation(Representation r) { 1238 void HCompare::SetInputRepresentation(Representation r) {
1239 input_representation_ = r; 1239 input_representation_ = r;
1240 if (r.IsTagged()) { 1240 if (r.IsTagged()) {
1241 SetAllSideEffects(); 1241 SetAllSideEffects();
1242 ClearFlag(kUseGVN); 1242 ClearFlag(kUseGVN);
1243 } else if (r.IsDouble()) {
1244 SetFlag(kDeoptimizeOnUndefined);
1245 ClearAllSideEffects();
1246 SetFlag(kUseGVN);
1243 } else { 1247 } else {
1244 ClearAllSideEffects(); 1248 ClearAllSideEffects();
1245 SetFlag(kUseGVN); 1249 SetFlag(kUseGVN);
1246 } 1250 }
1247 } 1251 }
1248 1252
1249 1253
1250 void HParameter::PrintDataTo(StringStream* stream) { 1254 void HParameter::PrintDataTo(StringStream* stream) {
1251 stream->Add("%u", index()); 1255 stream->Add("%u", index());
1252 } 1256 }
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 1773
1770 1774
1771 void HCheckPrototypeMaps::Verify() { 1775 void HCheckPrototypeMaps::Verify() {
1772 HInstruction::Verify(); 1776 HInstruction::Verify();
1773 ASSERT(HasNoUses()); 1777 ASSERT(HasNoUses());
1774 } 1778 }
1775 1779
1776 #endif 1780 #endif
1777 1781
1778 } } // namespace v8::internal 1782 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698