| 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 #include "src/ostreams.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 void LookupResult::Iterate(ObjectVisitor* visitor) { | 13 void LookupResult::Iterate(ObjectVisitor* visitor) { |
| 14 LookupResult* current = this; // Could be NULL. | 14 LookupResult* current = this; // Could be NULL. |
| 15 while (current != NULL) { | 15 while (current != NULL) { |
| 16 visitor->VisitPointer(bit_cast<Object**>(¤t->holder_)); | |
| 17 visitor->VisitPointer(bit_cast<Object**>(¤t->transition_)); | 16 visitor->VisitPointer(bit_cast<Object**>(¤t->transition_)); |
| 18 current = current->next_; | 17 current = current->next_; |
| 19 } | 18 } |
| 20 } | 19 } |
| 21 | 20 |
| 22 | 21 |
| 23 std::ostream& operator<<(std::ostream& os, const LookupResult& r) { | 22 std::ostream& operator<<(std::ostream& os, const LookupResult& r) { |
| 24 if (!r.IsFound()) return os << "Not Found\n"; | 23 if (!r.IsFound()) return os << "Not Found\n"; |
| 25 | 24 |
| 26 os << "LookupResult:\n"; | 25 os << "LookupResult:\n"; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 if (value->IsAccessorPair()) { | 96 if (value->IsAccessorPair()) { |
| 98 AccessorPair* pair = AccessorPair::cast(value); | 97 AccessorPair* pair = AccessorPair::cast(value); |
| 99 os << "(get: " << Brief(pair->getter()) | 98 os << "(get: " << Brief(pair->getter()) |
| 100 << ", set: " << Brief(pair->setter()) << ") "; | 99 << ", set: " << Brief(pair->setter()) << ") "; |
| 101 } | 100 } |
| 102 os << FastPropertyDetails(d.GetDetails()); | 101 os << FastPropertyDetails(d.GetDetails()); |
| 103 return os; | 102 return os; |
| 104 } | 103 } |
| 105 | 104 |
| 106 } } // namespace v8::internal | 105 } } // namespace v8::internal |
| OLD | NEW |