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 29 matching lines...) Expand all Loading... |
40 << " -index = " << r.GetFieldIndex().property_index() << "\n" | 40 << " -index = " << r.GetFieldIndex().property_index() << "\n" |
41 << " -field type:"; | 41 << " -field type:"; |
42 r.GetFieldType()->PrintTo(os); | 42 r.GetFieldType()->PrintTo(os); |
43 return os << "\n"; | 43 return os << "\n"; |
44 case CALLBACKS: | 44 case CALLBACKS: |
45 return os << " -type = call backs\n"; | 45 return os << " -type = call backs\n"; |
46 case HANDLER: | 46 case HANDLER: |
47 return os << " -type = lookup proxy\n"; | 47 return os << " -type = lookup proxy\n"; |
48 case INTERCEPTOR: | 48 case INTERCEPTOR: |
49 return os << " -type = lookup interceptor\n"; | 49 return os << " -type = lookup interceptor\n"; |
50 case NONEXISTENT: | |
51 UNREACHABLE(); | |
52 break; | |
53 } | 50 } |
54 return os; | 51 return os; |
55 } | 52 } |
56 | 53 |
57 | 54 |
58 OStream& operator<<(OStream& os, const Descriptor& d) { | 55 OStream& operator<<(OStream& os, const Descriptor& d) { |
59 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " | 56 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " |
60 << Brief(*d.GetValue()); | 57 << Brief(*d.GetValue()); |
61 } | 58 } |
62 | 59 |
63 } } // namespace v8::internal | 60 } } // namespace v8::internal |
OLD | NEW |