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

Side by Side Diff: src/property.cc

Issue 936813002: Contribution of PowerPC port (continuation of 422063005) - PPC dir update 2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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') | src/serialize.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 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) {
14 LookupResult* current = this; // Could be NULL.
15 while (current != NULL) {
16 visitor->VisitPointer(bit_cast<Object**>(&current->holder_));
17 visitor->VisitPointer(bit_cast<Object**>(&current->transition_));
18 current = current->next_;
19 }
20 }
21
22
23 std::ostream& operator<<(std::ostream& os, const LookupResult& r) {
24 if (!r.IsFound()) return os << "Not Found\n";
25
26 os << "LookupResult:\n";
27 if (r.IsTransition()) {
28 os << " -transition target:\n" << Brief(r.GetTransitionTarget()) << "\n";
29 }
30 return os;
31 }
32
33
34 std::ostream& operator<<(std::ostream& os, 13 std::ostream& operator<<(std::ostream& os,
35 const PropertyAttributes& attributes) { 14 const PropertyAttributes& attributes) {
36 os << "["; 15 os << "[";
37 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable 16 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable
38 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable 17 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable
39 os << (((attributes & DONT_DELETE) == 0) ? "C" : "_"); // configurable 18 os << (((attributes & DONT_DELETE) == 0) ? "C" : "_"); // configurable
40 os << "]"; 19 os << "]";
41 return os; 20 return os;
42 } 21 }
43 22
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (value->IsAccessorPair()) { 76 if (value->IsAccessorPair()) {
98 AccessorPair* pair = AccessorPair::cast(value); 77 AccessorPair* pair = AccessorPair::cast(value);
99 os << "(get: " << Brief(pair->getter()) 78 os << "(get: " << Brief(pair->getter())
100 << ", set: " << Brief(pair->setter()) << ") "; 79 << ", set: " << Brief(pair->setter()) << ") ";
101 } 80 }
102 os << FastPropertyDetails(d.GetDetails()); 81 os << FastPropertyDetails(d.GetDetails());
103 return os; 82 return os;
104 } 83 }
105 84
106 } } // namespace v8::internal 85 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698