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

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

Issue 6794014: Remove redundant data member from HChange instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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') | no next file » | 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 1624
1625 1625
1626 void HCheckPrototypeMaps::Verify() { 1626 void HCheckPrototypeMaps::Verify() {
1627 HInstruction::Verify(); 1627 HInstruction::Verify();
1628 ASSERT(HasNoUses()); 1628 ASSERT(HasNoUses());
1629 } 1629 }
1630 1630
1631 #endif 1631 #endif
1632 1632
1633 } } // namespace v8::internal 1633 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698