| 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 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 os << " -cacheable = " << (r.IsCacheable() ? "true" : "false") << "\n"; | 27 os << " -cacheable = " << (r.IsCacheable() ? "true" : "false") << "\n"; |
| 28 os << " -attributes = " << hex << r.GetAttributes() << dec << "\n"; | 28 os << " -attributes = " << hex << r.GetAttributes() << dec << "\n"; |
| 29 if (r.IsTransition()) { | 29 if (r.IsTransition()) { |
| 30 os << " -transition target:\n" << Brief(r.GetTransitionTarget()) << "\n"; | 30 os << " -transition target:\n" << Brief(r.GetTransitionTarget()) << "\n"; |
| 31 } | 31 } |
| 32 switch (r.type()) { | 32 switch (r.type()) { |
| 33 case NORMAL: | 33 case NORMAL: |
| 34 return os << " -type = normal\n" | 34 return os << " -type = normal\n" |
| 35 << " -entry = " << r.GetDictionaryEntry() << "\n"; | 35 << " -entry = " << r.GetDictionaryEntry() << "\n"; |
| 36 case CONSTANT: | 36 case CONSTANT: |
| 37 return os << " -type = constant\n" | 37 return os << " -type = constant\n"; |
| 38 << " -value:\n" << Brief(r.GetConstant()) << "\n"; | |
| 39 case FIELD: | 38 case FIELD: |
| 40 os << " -type = field\n" | 39 os << " -type = field\n" |
| 41 << " -index = " << r.GetFieldIndex().property_index() << "\n" | 40 << " -index = " << r.GetFieldIndex().property_index() << "\n" |
| 42 << " -field type:"; | 41 << " -field type:"; |
| 43 r.GetFieldType()->PrintTo(os); | 42 r.GetFieldType()->PrintTo(os); |
| 44 return os << "\n"; | 43 return os << "\n"; |
| 45 case CALLBACKS: | 44 case CALLBACKS: |
| 46 return os << " -type = call backs\n" | 45 return os << " -type = call backs\n"; |
| 47 << " -callback object:\n" << Brief(r.GetCallbackObject()); | |
| 48 case HANDLER: | 46 case HANDLER: |
| 49 return os << " -type = lookup proxy\n"; | 47 return os << " -type = lookup proxy\n"; |
| 50 case INTERCEPTOR: | 48 case INTERCEPTOR: |
| 51 return os << " -type = lookup interceptor\n"; | 49 return os << " -type = lookup interceptor\n"; |
| 52 case NONEXISTENT: | 50 case NONEXISTENT: |
| 53 UNREACHABLE(); | 51 UNREACHABLE(); |
| 54 break; | 52 break; |
| 55 } | 53 } |
| 56 return os; | 54 return os; |
| 57 } | 55 } |
| 58 | 56 |
| 59 | 57 |
| 60 OStream& operator<<(OStream& os, const Descriptor& d) { | 58 OStream& operator<<(OStream& os, const Descriptor& d) { |
| 61 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " | 59 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " |
| 62 << Brief(*d.GetValue()); | 60 << Brief(*d.GetValue()); |
| 63 } | 61 } |
| 64 | 62 |
| 65 } } // namespace v8::internal | 63 } } // namespace v8::internal |
| OLD | NEW |