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 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 | 2588 |
2589 | 2589 |
2590 void HPhi::AddIndirectUsesTo(int* dest) { | 2590 void HPhi::AddIndirectUsesTo(int* dest) { |
2591 for (int i = 0; i < Representation::kNumRepresentations; i++) { | 2591 for (int i = 0; i < Representation::kNumRepresentations; i++) { |
2592 dest[i] += indirect_uses_[i]; | 2592 dest[i] += indirect_uses_[i]; |
2593 } | 2593 } |
2594 } | 2594 } |
2595 | 2595 |
2596 | 2596 |
2597 void HSimulate::MergeWith(ZoneList<HSimulate*>* list) { | 2597 void HSimulate::MergeWith(ZoneList<HSimulate*>* list) { |
2598 if (!list->is_empty() && !HasAstId()) { | |
2599 set_ast_id(list->last()->ast_id()); | |
2600 } | |
2601 while (!list->is_empty()) { | 2598 while (!list->is_empty()) { |
2602 HSimulate* from = list->RemoveLast(); | 2599 HSimulate* from = list->RemoveLast(); |
2603 ZoneList<HValue*>* from_values = &from->values_; | 2600 ZoneList<HValue*>* from_values = &from->values_; |
2604 for (int i = 0; i < from_values->length(); ++i) { | 2601 for (int i = 0; i < from_values->length(); ++i) { |
2605 if (from->HasAssignedIndexAt(i)) { | 2602 if (from->HasAssignedIndexAt(i)) { |
2606 int index = from->GetAssignedIndexAt(i); | 2603 int index = from->GetAssignedIndexAt(i); |
2607 if (HasValueForIndex(index)) continue; | 2604 if (HasValueForIndex(index)) continue; |
2608 AddAssignedValue(index, from_values->at(i)); | 2605 AddAssignedValue(index, from_values->at(i)); |
2609 } else { | 2606 } else { |
2610 if (pop_count_ > 0) { | 2607 if (pop_count_ > 0) { |
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4747 break; | 4744 break; |
4748 case kExternalMemory: | 4745 case kExternalMemory: |
4749 stream->Add("[external-memory]"); | 4746 stream->Add("[external-memory]"); |
4750 break; | 4747 break; |
4751 } | 4748 } |
4752 | 4749 |
4753 stream->Add("@%d", offset()); | 4750 stream->Add("@%d", offset()); |
4754 } | 4751 } |
4755 | 4752 |
4756 } } // namespace v8::internal | 4753 } } // namespace v8::internal |
OLD | NEW |