| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/property.h" | 5 #include "src/property.h" |
| 6 | 6 |
| 7 #include "src/handles-inl.h" | 7 #include "src/handles-inl.h" |
| 8 #include "src/ostreams.h" |
| 8 | 9 |
| 9 namespace v8 { | 10 namespace v8 { |
| 10 namespace internal { | 11 namespace internal { |
| 11 | 12 |
| 12 void LookupResult::Iterate(ObjectVisitor* visitor) { | 13 void LookupResult::Iterate(ObjectVisitor* visitor) { |
| 13 LookupResult* current = this; // Could be NULL. | 14 LookupResult* current = this; // Could be NULL. |
| 14 while (current != NULL) { | 15 while (current != NULL) { |
| 15 visitor->VisitPointer(BitCast<Object**>(¤t->holder_)); | 16 visitor->VisitPointer(BitCast<Object**>(¤t->holder_)); |
| 16 visitor->VisitPointer(BitCast<Object**>(¤t->transition_)); | 17 visitor->VisitPointer(BitCast<Object**>(¤t->transition_)); |
| 17 current = current->next_; | 18 current = current->next_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 return os; | 56 return os; |
| 56 } | 57 } |
| 57 | 58 |
| 58 | 59 |
| 59 OStream& operator<<(OStream& os, const Descriptor& d) { | 60 OStream& operator<<(OStream& os, const Descriptor& d) { |
| 60 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " | 61 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " |
| 61 << Brief(*d.GetValue()); | 62 << Brief(*d.GetValue()); |
| 62 } | 63 } |
| 63 | 64 |
| 64 } } // namespace v8::internal | 65 } } // namespace v8::internal |
| OLD | NEW |