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

Side by Side Diff: src/property.cc

Issue 932533003: Remove the holder_ field from LookupResult (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 10 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/property.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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**>(&current->holder_));
17 visitor->VisitPointer(bit_cast<Object**>(&current->transition_)); 16 visitor->VisitPointer(bit_cast<Object**>(&current->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
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
OLDNEW
« no previous file with comments | « src/property.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698