Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/hydrogen-check-elimination.cc

Issue 435613002: Version 3.26.31.14 (merged r21375) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698