OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "hydrogen-infer-representation.h" | 5 #include "src/hydrogen-infer-representation.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 void HInferRepresentationPhase::AddToWorklist(HValue* current) { | 10 void HInferRepresentationPhase::AddToWorklist(HValue* current) { |
11 if (current->representation().IsTagged()) return; | 11 if (current->representation().IsTagged()) return; |
12 if (!current->CheckFlag(HValue::kFlexibleRepresentation)) return; | 12 if (!current->CheckFlag(HValue::kFlexibleRepresentation)) return; |
13 if (in_worklist_.Contains(current->id())) return; | 13 if (in_worklist_.Contains(current->id())) return; |
14 worklist_.Add(current, zone()); | 14 worklist_.Add(current, zone()); |
15 in_worklist_.Add(current->id()); | 15 in_worklist_.Add(current->id()); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 current->ChangeRepresentation(Representation::Double()); | 152 current->ChangeRepresentation(Representation::Double()); |
153 } else { | 153 } else { |
154 current->ChangeRepresentation(Representation::Tagged()); | 154 current->ChangeRepresentation(Representation::Tagged()); |
155 } | 155 } |
156 } | 156 } |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 } } // namespace v8::internal | 161 } } // namespace v8::internal |
OLD | NEW |