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 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 case INTERCEPTOR: | 49 case INTERCEPTOR: |
50 return os << " -type = lookup interceptor\n"; | 50 return os << " -type = lookup interceptor\n"; |
51 case NONEXISTENT: | 51 case NONEXISTENT: |
52 UNREACHABLE(); | 52 UNREACHABLE(); |
53 break; | 53 break; |
54 } | 54 } |
55 return os; | 55 return os; |
56 } | 56 } |
57 | 57 |
58 | 58 |
| 59 OStream& operator<<(OStream& os, const PropertyDetails& details) { |
| 60 switch (details.type()) { |
| 61 case NORMAL: |
| 62 os << "(normal, dictionary_index: " << details.dictionary_index() << ")"; |
| 63 break; |
| 64 case CONSTANT: |
| 65 os << "(constant)\n"; |
| 66 break; |
| 67 case FIELD: |
| 68 os << "(field, field_index: " << details.field_index() << ", " |
| 69 << details.representation().Mnemonic() << ")"; |
| 70 break; |
| 71 case CALLBACKS: |
| 72 os << "(callbacks)"; |
| 73 break; |
| 74 case HANDLER: |
| 75 case INTERCEPTOR: |
| 76 case NONEXISTENT: |
| 77 UNREACHABLE(); |
| 78 break; |
| 79 } |
| 80 return os; |
| 81 } |
| 82 |
| 83 |
59 OStream& operator<<(OStream& os, const Descriptor& d) { | 84 OStream& operator<<(OStream& os, const Descriptor& d) { |
60 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " | 85 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " |
61 << Brief(*d.GetValue()); | 86 << Brief(*d.GetValue()) << " " << d.GetDetails(); |
62 } | 87 } |
63 | 88 |
64 } } // namespace v8::internal | 89 } } // namespace v8::internal |
OLD | NEW |