OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/linkage.h" | 6 #include "src/compiler/linkage.h" |
7 #include "src/compiler/register-allocator.h" | 7 #include "src/compiler/register-allocator.h" |
8 #include "src/string-stream.h" | 8 #include "src/string-stream.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 | 1034 |
1035 first->next_ = second; | 1035 first->next_ = second; |
1036 first = temp; | 1036 first = temp; |
1037 continue; | 1037 continue; |
1038 } | 1038 } |
1039 DCHECK(first->End() <= second->Start()); | 1039 DCHECK(first->End() <= second->Start()); |
1040 } | 1040 } |
1041 | 1041 |
1042 TopLevel()->UpdateParentForAllChildren(TopLevel()); | 1042 TopLevel()->UpdateParentForAllChildren(TopLevel()); |
1043 TopLevel()->UpdateSpillRangePostMerge(other); | 1043 TopLevel()->UpdateSpillRangePostMerge(other); |
| 1044 TopLevel()->set_has_slot_use(TopLevel()->has_slot_use() || |
| 1045 other->has_slot_use()); |
1044 | 1046 |
1045 #if DEBUG | 1047 #if DEBUG |
1046 Verify(); | 1048 Verify(); |
1047 #endif | 1049 #endif |
1048 } | 1050 } |
1049 | 1051 |
1050 | 1052 |
1051 void TopLevelLiveRange::VerifyChildrenInOrder() const { | 1053 void TopLevelLiveRange::VerifyChildrenInOrder() const { |
1052 LifetimePosition last_end = End(); | 1054 LifetimePosition last_end = End(); |
1053 for (const LiveRange* child = this->next(); child != nullptr; | 1055 for (const LiveRange* child = this->next(); child != nullptr; |
(...skipping 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3621 } | 3623 } |
3622 } | 3624 } |
3623 } | 3625 } |
3624 } | 3626 } |
3625 } | 3627 } |
3626 | 3628 |
3627 | 3629 |
3628 } // namespace compiler | 3630 } // namespace compiler |
3629 } // namespace internal | 3631 } // namespace internal |
3630 } // namespace v8 | 3632 } // namespace v8 |
OLD | NEW |