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/field-type.h" | 7 #include "src/field-type.h" |
8 #include "src/handles-inl.h" | 8 #include "src/handles-inl.h" |
| 9 #include "src/objects-inl.h" |
9 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 std::ostream& operator<<(std::ostream& os, | 15 std::ostream& operator<<(std::ostream& os, |
15 const PropertyAttributes& attributes) { | 16 const PropertyAttributes& attributes) { |
16 os << "["; | 17 os << "["; |
17 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable | 18 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable |
18 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable | 19 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 AccessorPair* pair = AccessorPair::cast(value); | 85 AccessorPair* pair = AccessorPair::cast(value); |
85 os << "(get: " << Brief(pair->getter()) | 86 os << "(get: " << Brief(pair->getter()) |
86 << ", set: " << Brief(pair->setter()) << ") "; | 87 << ", set: " << Brief(pair->setter()) << ") "; |
87 } | 88 } |
88 os << FastPropertyDetails(d.GetDetails()); | 89 os << FastPropertyDetails(d.GetDetails()); |
89 return os; | 90 return os; |
90 } | 91 } |
91 | 92 |
92 } // namespace internal | 93 } // namespace internal |
93 } // namespace v8 | 94 } // namespace v8 |
OLD | NEW |