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

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

Issue 24195009: Turn HCompareHoleAndBranch into a HUnaryControlInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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-ia32.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 2850
2851 2851
2852 void HCompareObjectEqAndBranch::PrintDataTo(StringStream* stream) { 2852 void HCompareObjectEqAndBranch::PrintDataTo(StringStream* stream) {
2853 left()->PrintNameTo(stream); 2853 left()->PrintNameTo(stream);
2854 stream->Add(" "); 2854 stream->Add(" ");
2855 right()->PrintNameTo(stream); 2855 right()->PrintNameTo(stream);
2856 HControlInstruction::PrintDataTo(stream); 2856 HControlInstruction::PrintDataTo(stream);
2857 } 2857 }
2858 2858
2859 2859
2860 void HCompareHoleAndBranch::PrintDataTo(StringStream* stream) {
2861 object()->PrintNameTo(stream);
2862 HControlInstruction::PrintDataTo(stream);
2863 }
2864
2865
2866 void HCompareHoleAndBranch::InferRepresentation( 2860 void HCompareHoleAndBranch::InferRepresentation(
2867 HInferRepresentationPhase* h_infer) { 2861 HInferRepresentationPhase* h_infer) {
2868 ChangeRepresentation(object()->representation()); 2862 ChangeRepresentation(value()->representation());
2869 } 2863 }
2870 2864
2871 2865
2872 void HGoto::PrintDataTo(StringStream* stream) { 2866 void HGoto::PrintDataTo(StringStream* stream) {
2873 stream->Add("B%d", SuccessorAt(0)->block_id()); 2867 stream->Add("B%d", SuccessorAt(0)->block_id());
2874 } 2868 }
2875 2869
2876 2870
2877 void HCompareNumericAndBranch::InferRepresentation( 2871 void HCompareNumericAndBranch::InferRepresentation(
2878 HInferRepresentationPhase* h_infer) { 2872 HInferRepresentationPhase* h_infer) {
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 break; 4230 break;
4237 case kExternalMemory: 4231 case kExternalMemory:
4238 stream->Add("[external-memory]"); 4232 stream->Add("[external-memory]");
4239 break; 4233 break;
4240 } 4234 }
4241 4235
4242 stream->Add("@%d", offset()); 4236 stream->Add("@%d", offset());
4243 } 4237 }
4244 4238
4245 } } // namespace v8::internal 4239 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698