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

Side by Side Diff: src/hydrogen.cc

Issue 9578013: Fix column formatting of --hydrogen-stats output by shortening a line. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 9 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 | « no previous file | 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 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 2040
2041 // The only purpose of a HForceRepresentation is to represent the value 2041 // The only purpose of a HForceRepresentation is to represent the value
2042 // after the (possible) HChange instruction. We make it disappear. 2042 // after the (possible) HChange instruction. We make it disappear.
2043 if (value->IsForceRepresentation()) { 2043 if (value->IsForceRepresentation()) {
2044 value->DeleteAndReplaceWith(HForceRepresentation::cast(value)->value()); 2044 value->DeleteAndReplaceWith(HForceRepresentation::cast(value)->value());
2045 } 2045 }
2046 } 2046 }
2047 2047
2048 2048
2049 void HGraph::InsertRepresentationChanges() { 2049 void HGraph::InsertRepresentationChanges() {
2050 HPhase phase("H_Insert representation changes", this); 2050 HPhase phase("H_Representation changes", this);
2051
2052 2051
2053 // Compute truncation flag for phis: Initially assume that all 2052 // Compute truncation flag for phis: Initially assume that all
2054 // int32-phis allow truncation and iteratively remove the ones that 2053 // int32-phis allow truncation and iteratively remove the ones that
2055 // are used in an operation that does not allow a truncating 2054 // are used in an operation that does not allow a truncating
2056 // conversion. 2055 // conversion.
2057 // TODO(fschneider): Replace this with a worklist-based iteration. 2056 // TODO(fschneider): Replace this with a worklist-based iteration.
2058 for (int i = 0; i < phi_list()->length(); i++) { 2057 for (int i = 0; i < phi_list()->length(); i++) {
2059 HPhi* phi = phi_list()->at(i); 2058 HPhi* phi = phi_list()->at(i);
2060 if (phi->representation().IsInteger32()) { 2059 if (phi->representation().IsInteger32()) {
2061 phi->SetFlag(HValue::kTruncatingToInt32); 2060 phi->SetFlag(HValue::kTruncatingToInt32);
(...skipping 5985 matching lines...) Expand 10 before | Expand all | Expand 10 after
8047 } 8046 }
8048 } 8047 }
8049 8048
8050 #ifdef DEBUG 8049 #ifdef DEBUG
8051 if (graph_ != NULL) graph_->Verify(false); // No full verify. 8050 if (graph_ != NULL) graph_->Verify(false); // No full verify.
8052 if (allocator_ != NULL) allocator_->Verify(); 8051 if (allocator_ != NULL) allocator_->Verify();
8053 #endif 8052 #endif
8054 } 8053 }
8055 8054
8056 } } // namespace v8::internal 8055 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698