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

Side by Side Diff: src/hydrogen.h

Issue 996133002: correctly invalidate global cells (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 9 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_HYDROGEN_H_ 5 #ifndef V8_HYDROGEN_H_
6 #define V8_HYDROGEN_H_ 6 #define V8_HYDROGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 Map* target = 2617 Map* target =
2618 TransitionArray::SearchTransition(map, kData, name, attributes); 2618 TransitionArray::SearchTransition(map, kData, name, attributes);
2619 if (target == NULL) return NotFound(); 2619 if (target == NULL) return NotFound();
2620 lookup_type_ = TRANSITION_TYPE; 2620 lookup_type_ = TRANSITION_TYPE;
2621 transition_ = handle(target); 2621 transition_ = handle(target);
2622 number_ = transition_->LastAdded(); 2622 number_ = transition_->LastAdded();
2623 details_ = transition_->instance_descriptors()->GetDetails(number_); 2623 details_ = transition_->instance_descriptors()->GetDetails(number_);
2624 } 2624 }
2625 void NotFound() { 2625 void NotFound() {
2626 lookup_type_ = NOT_FOUND; 2626 lookup_type_ = NOT_FOUND;
2627 details_ = PropertyDetails(NONE, DATA, 0); 2627 details_ = PropertyDetails::Empty();
2628 } 2628 }
2629 Representation representation() const { 2629 Representation representation() const {
2630 DCHECK(IsFound()); 2630 DCHECK(IsFound());
2631 return details_.representation(); 2631 return details_.representation();
2632 } 2632 }
2633 bool IsTransitionToData() const { 2633 bool IsTransitionToData() const {
2634 return IsTransition() && details_.type() == DATA; 2634 return IsTransition() && details_.type() == DATA;
2635 } 2635 }
2636 2636
2637 Zone* zone() { return builder_->zone(); } 2637 Zone* zone() { return builder_->zone(); }
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
3026 } 3026 }
3027 3027
3028 private: 3028 private:
3029 HGraphBuilder* builder_; 3029 HGraphBuilder* builder_;
3030 }; 3030 };
3031 3031
3032 3032
3033 } } // namespace v8::internal 3033 } } // namespace v8::internal
3034 3034
3035 #endif // V8_HYDROGEN_H_ 3035 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698