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

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

Issue 17028017: Flexible representation for BuildIncrement, but CannotBeTagged. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Let inferrepr figure out the repr of the add Created 7 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') | 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 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 return Representation::None(); 122 return Representation::None();
123 } 123 }
124 124
125 125
126 void HValue::UpdateRepresentation(Representation new_rep, 126 void HValue::UpdateRepresentation(Representation new_rep,
127 HInferRepresentation* h_infer, 127 HInferRepresentation* h_infer,
128 const char* reason) { 128 const char* reason) {
129 Representation r = representation(); 129 Representation r = representation();
130 if (new_rep.is_more_general_than(r)) { 130 if (new_rep.is_more_general_than(r)) {
131 if (CheckFlag(kCannotBeTagged) && r.IsTagged()) return;
131 if (FLAG_trace_representation) { 132 if (FLAG_trace_representation) {
132 PrintF("Changing #%d %s representation %s -> %s based on %s\n", 133 PrintF("Changing #%d %s representation %s -> %s based on %s\n",
133 id(), Mnemonic(), r.Mnemonic(), new_rep.Mnemonic(), reason); 134 id(), Mnemonic(), r.Mnemonic(), new_rep.Mnemonic(), reason);
134 } 135 }
135 ChangeRepresentation(new_rep); 136 ChangeRepresentation(new_rep);
136 AddDependantsToWorklist(h_infer); 137 AddDependantsToWorklist(h_infer);
137 } 138 }
138 } 139 }
139 140
140 141
(...skipping 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 case kBackingStore: 3872 case kBackingStore:
3872 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3873 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3873 stream->Add("[backing-store]"); 3874 stream->Add("[backing-store]");
3874 break; 3875 break;
3875 } 3876 }
3876 3877
3877 stream->Add("@%d", offset()); 3878 stream->Add("@%d", offset());
3878 } 3879 }
3879 3880
3880 } } // namespace v8::internal 3881 } } // 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