| 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/objects.h" | 5 #include "src/objects.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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ | 94 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ |
| 95 break; | 95 break; |
| 96 | 96 |
| 97 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) | 97 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) |
| 98 #undef PRINT_FIXED_TYPED_ARRAY | 98 #undef PRINT_FIXED_TYPED_ARRAY |
| 99 | 99 |
| 100 case FILLER_TYPE: | 100 case FILLER_TYPE: |
| 101 os << "filler"; | 101 os << "filler"; |
| 102 break; | 102 break; |
| 103 case JS_OBJECT_TYPE: // fall through | 103 case JS_OBJECT_TYPE: // fall through |
| 104 case JS_API_OBJECT_TYPE: |
| 104 case JS_SPECIAL_API_OBJECT_TYPE: | 105 case JS_SPECIAL_API_OBJECT_TYPE: |
| 105 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 106 case JS_GENERATOR_OBJECT_TYPE: | 107 case JS_GENERATOR_OBJECT_TYPE: |
| 107 case JS_PROMISE_TYPE: | 108 case JS_PROMISE_TYPE: |
| 108 JSObject::cast(this)->JSObjectPrint(os); | 109 JSObject::cast(this)->JSObjectPrint(os); |
| 109 break; | 110 break; |
| 110 case JS_ARRAY_TYPE: | 111 case JS_ARRAY_TYPE: |
| 111 JSArray::cast(this)->JSArrayPrint(os); | 112 JSArray::cast(this)->JSArrayPrint(os); |
| 112 break; | 113 break; |
| 113 case JS_REGEXP_TYPE: | 114 case JS_REGEXP_TYPE: |
| (...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1340 Object* transitions = map()->raw_transitions(); | 1341 Object* transitions = map()->raw_transitions(); |
| 1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1342 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1342 if (num_transitions == 0) return; | 1343 if (num_transitions == 0) return; |
| 1343 os << "\n - transitions"; | 1344 os << "\n - transitions"; |
| 1344 TransitionArray::PrintTransitions(os, transitions, false); | 1345 TransitionArray::PrintTransitions(os, transitions, false); |
| 1345 } | 1346 } |
| 1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1347 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1347 } // namespace internal | 1348 } // namespace internal |
| 1348 } // namespace v8 | 1349 } // namespace v8 |
| OLD | NEW |