| 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-check-elimination.h" | 5 #include "hydrogen-check-elimination.h" |
| 6 #include "hydrogen-alias-analysis.h" | 6 #include "hydrogen-alias-analysis.h" |
| 7 #include "hydrogen-flow-engine.h" | 7 #include "hydrogen-flow-engine.h" |
| 8 | 8 |
| 9 #define GLOBAL 1 | 9 #define GLOBAL 1 |
| 10 | 10 |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 : objects_(0, zone), maps_stored_(false) {} | 612 : objects_(0, zone), maps_stored_(false) {} |
| 613 | 613 |
| 614 // Effects are _not_ disabled. | 614 // Effects are _not_ disabled. |
| 615 inline bool Disabled() const { return false; } | 615 inline bool Disabled() const { return false; } |
| 616 | 616 |
| 617 // Process a possibly side-effecting instruction. | 617 // Process a possibly side-effecting instruction. |
| 618 void Process(HInstruction* instr, Zone* zone) { | 618 void Process(HInstruction* instr, Zone* zone) { |
| 619 switch (instr->opcode()) { | 619 switch (instr->opcode()) { |
| 620 case HValue::kStoreNamedField: { | 620 case HValue::kStoreNamedField: { |
| 621 HStoreNamedField* store = HStoreNamedField::cast(instr); | 621 HStoreNamedField* store = HStoreNamedField::cast(instr); |
| 622 if (store->access().IsMap() && store->has_transition()) { | 622 if (store->access().IsMap() || store->has_transition()) { |
| 623 objects_.Add(store->object(), zone); | 623 objects_.Add(store->object(), zone); |
| 624 } | 624 } |
| 625 break; | 625 break; |
| 626 } | 626 } |
| 627 case HValue::kTransitionElementsKind: { | 627 case HValue::kTransitionElementsKind: { |
| 628 objects_.Add(HTransitionElementsKind::cast(instr)->object(), zone); | 628 objects_.Add(HTransitionElementsKind::cast(instr)->object(), zone); |
| 629 break; | 629 break; |
| 630 } | 630 } |
| 631 default: { | 631 default: { |
| 632 maps_stored_ |= (instr->CheckChangesFlag(kMaps) | | 632 maps_stored_ |= (instr->CheckChangesFlag(kMaps) | |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 PRINT_STAT(removed_cho); | 697 PRINT_STAT(removed_cho); |
| 698 PRINT_STAT(narrowed); | 698 PRINT_STAT(narrowed); |
| 699 PRINT_STAT(loads); | 699 PRINT_STAT(loads); |
| 700 PRINT_STAT(empty); | 700 PRINT_STAT(empty); |
| 701 PRINT_STAT(compares_true); | 701 PRINT_STAT(compares_true); |
| 702 PRINT_STAT(compares_false); | 702 PRINT_STAT(compares_false); |
| 703 PRINT_STAT(transitions); | 703 PRINT_STAT(transitions); |
| 704 } | 704 } |
| 705 | 705 |
| 706 } } // namespace v8::internal | 706 } } // namespace v8::internal |
| OLD | NEW |