| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |