| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 243 case HANDLER: // only in lookup results, not in descriptors |
| 244 case INTERCEPTOR: // only in lookup results, not in descriptors | 244 case INTERCEPTOR: // only in lookup results, not in descriptors |
| 245 // There are no transitions in the descriptor array. | |
| 246 case NONEXISTENT: | |
| 247 UNREACHABLE(); | 245 UNREACHABLE(); |
| 248 break; | 246 break; |
| 249 } | 247 } |
| 250 } | 248 } |
| 251 } else { | 249 } else { |
| 252 property_dictionary()->Print(os); | 250 property_dictionary()->Print(os); |
| 253 } | 251 } |
| 254 } | 252 } |
| 255 | 253 |
| 256 | 254 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 case CONSTANT: | 368 case CONSTANT: |
| 371 os << " (transition to constant)\n"; | 369 os << " (transition to constant)\n"; |
| 372 break; | 370 break; |
| 373 case CALLBACKS: | 371 case CALLBACKS: |
| 374 os << " (transition to callback)\n"; | 372 os << " (transition to callback)\n"; |
| 375 break; | 373 break; |
| 376 // Values below are never in the target descriptor array. | 374 // Values below are never in the target descriptor array. |
| 377 case NORMAL: | 375 case NORMAL: |
| 378 case HANDLER: | 376 case HANDLER: |
| 379 case INTERCEPTOR: | 377 case INTERCEPTOR: |
| 380 case NONEXISTENT: | |
| 381 UNREACHABLE(); | 378 UNREACHABLE(); |
| 382 break; | 379 break; |
| 383 } | 380 } |
| 384 } | 381 } |
| 385 } | 382 } |
| 386 } | 383 } |
| 387 | 384 |
| 388 | 385 |
| 389 void JSObject::JSObjectPrint(OStream& os) { // NOLINT | 386 void JSObject::JSObjectPrint(OStream& os) { // NOLINT |
| 390 HeapObject::PrintHeader(os, "JSObject"); | 387 HeapObject::PrintHeader(os, "JSObject"); |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 case CONSTANT: | 1097 case CONSTANT: |
| 1101 os << " (transition to constant)\n"; | 1098 os << " (transition to constant)\n"; |
| 1102 break; | 1099 break; |
| 1103 case CALLBACKS: | 1100 case CALLBACKS: |
| 1104 os << " (transition to callback)\n"; | 1101 os << " (transition to callback)\n"; |
| 1105 break; | 1102 break; |
| 1106 // Values below are never in the target descriptor array. | 1103 // Values below are never in the target descriptor array. |
| 1107 case NORMAL: | 1104 case NORMAL: |
| 1108 case HANDLER: | 1105 case HANDLER: |
| 1109 case INTERCEPTOR: | 1106 case INTERCEPTOR: |
| 1110 case NONEXISTENT: | |
| 1111 UNREACHABLE(); | 1107 UNREACHABLE(); |
| 1112 break; | 1108 break; |
| 1113 } | 1109 } |
| 1114 } | 1110 } |
| 1115 os << "\n"; | 1111 os << "\n"; |
| 1116 } | 1112 } |
| 1117 | 1113 |
| 1118 | 1114 |
| 1119 #endif // OBJECT_PRINT | 1115 #endif // OBJECT_PRINT |
| 1120 | 1116 |
| 1121 | 1117 |
| 1122 } } // namespace v8::internal | 1118 } } // namespace v8::internal |
| OLD | NEW |