| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/disasm.h" | 7 #include "src/disasm.h" |
| 8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
| 9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 << index.property_index() << ")\n"; | 233 << index.property_index() << ")\n"; |
| 234 break; | 234 break; |
| 235 } | 235 } |
| 236 case CONSTANT: | 236 case CONSTANT: |
| 237 os << Brief(descs->GetConstant(i)) << " (constant)\n"; | 237 os << Brief(descs->GetConstant(i)) << " (constant)\n"; |
| 238 break; | 238 break; |
| 239 case CALLBACKS: | 239 case CALLBACKS: |
| 240 os << Brief(descs->GetCallbacksObject(i)) << " (callback)\n"; | 240 os << Brief(descs->GetCallbacksObject(i)) << " (callback)\n"; |
| 241 break; | 241 break; |
| 242 case NORMAL: // only in slow mode | 242 case NORMAL: // only in slow mode |
| 243 case HANDLER: // only in lookup results, not in descriptors | |
| 244 case INTERCEPTOR: // only in lookup results, not in descriptors | |
| 245 UNREACHABLE(); | 243 UNREACHABLE(); |
| 246 break; | 244 break; |
| 247 } | 245 } |
| 248 } | 246 } |
| 249 } else { | 247 } else { |
| 250 property_dictionary()->Print(os); | 248 property_dictionary()->Print(os); |
| 251 } | 249 } |
| 252 } | 250 } |
| 253 | 251 |
| 254 | 252 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 break; | 364 break; |
| 367 } | 365 } |
| 368 case CONSTANT: | 366 case CONSTANT: |
| 369 os << " (transition to constant)\n"; | 367 os << " (transition to constant)\n"; |
| 370 break; | 368 break; |
| 371 case CALLBACKS: | 369 case CALLBACKS: |
| 372 os << " (transition to callback)\n"; | 370 os << " (transition to callback)\n"; |
| 373 break; | 371 break; |
| 374 // Values below are never in the target descriptor array. | 372 // Values below are never in the target descriptor array. |
| 375 case NORMAL: | 373 case NORMAL: |
| 376 case HANDLER: | |
| 377 case INTERCEPTOR: | |
| 378 UNREACHABLE(); | 374 UNREACHABLE(); |
| 379 break; | 375 break; |
| 380 } | 376 } |
| 381 } | 377 } |
| 382 } | 378 } |
| 383 } | 379 } |
| 384 | 380 |
| 385 | 381 |
| 386 void JSObject::JSObjectPrint(OStream& os) { // NOLINT | 382 void JSObject::JSObjectPrint(OStream& os) { // NOLINT |
| 387 HeapObject::PrintHeader(os, "JSObject"); | 383 HeapObject::PrintHeader(os, "JSObject"); |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 break; | 1091 break; |
| 1096 } | 1092 } |
| 1097 case CONSTANT: | 1093 case CONSTANT: |
| 1098 os << " (transition to constant)\n"; | 1094 os << " (transition to constant)\n"; |
| 1099 break; | 1095 break; |
| 1100 case CALLBACKS: | 1096 case CALLBACKS: |
| 1101 os << " (transition to callback)\n"; | 1097 os << " (transition to callback)\n"; |
| 1102 break; | 1098 break; |
| 1103 // Values below are never in the target descriptor array. | 1099 // Values below are never in the target descriptor array. |
| 1104 case NORMAL: | 1100 case NORMAL: |
| 1105 case HANDLER: | |
| 1106 case INTERCEPTOR: | |
| 1107 UNREACHABLE(); | 1101 UNREACHABLE(); |
| 1108 break; | 1102 break; |
| 1109 } | 1103 } |
| 1110 } | 1104 } |
| 1111 os << "\n"; | 1105 os << "\n"; |
| 1112 } | 1106 } |
| 1113 | 1107 |
| 1114 | 1108 |
| 1115 #endif // OBJECT_PRINT | 1109 #endif // OBJECT_PRINT |
| 1116 | 1110 |
| 1117 | 1111 |
| 1118 } } // namespace v8::internal | 1112 } } // namespace v8::internal |
| OLD | NEW |