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

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

Issue 7003109: Merge r8237 to V8 3.3 branch. Fix bug v8:1434, optimized compare of undefined can fail. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: '' 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698