| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |