| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_API_OBJECT_TYPE: |
| 105 case JS_SPECIAL_API_OBJECT_TYPE: | 105 case JS_SPECIAL_API_OBJECT_TYPE: |
| 106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 107 case JS_GENERATOR_OBJECT_TYPE: | 107 case JS_GENERATOR_OBJECT_TYPE: |
| 108 case JS_PROMISE_TYPE: | 108 case JS_PROMISE_TYPE: |
| 109 case JS_WASM_TYPE: |
| 109 JSObject::cast(this)->JSObjectPrint(os); | 110 JSObject::cast(this)->JSObjectPrint(os); |
| 110 break; | 111 break; |
| 111 case JS_ARRAY_TYPE: | 112 case JS_ARRAY_TYPE: |
| 112 JSArray::cast(this)->JSArrayPrint(os); | 113 JSArray::cast(this)->JSArrayPrint(os); |
| 113 break; | 114 break; |
| 114 case JS_REGEXP_TYPE: | 115 case JS_REGEXP_TYPE: |
| 115 JSRegExp::cast(this)->JSRegExpPrint(os); | 116 JSRegExp::cast(this)->JSRegExpPrint(os); |
| 116 break; | 117 break; |
| 117 case ODDBALL_TYPE: | 118 case ODDBALL_TYPE: |
| 118 Oddball::cast(this)->to_string()->Print(os); | 119 Oddball::cast(this)->to_string()->Print(os); |
| (...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1341 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1341 Object* transitions = map()->raw_transitions(); | 1342 Object* transitions = map()->raw_transitions(); |
| 1342 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1343 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1343 if (num_transitions == 0) return; | 1344 if (num_transitions == 0) return; |
| 1344 os << "\n - transitions"; | 1345 os << "\n - transitions"; |
| 1345 TransitionArray::PrintTransitions(os, transitions, false); | 1346 TransitionArray::PrintTransitions(os, transitions, false); |
| 1346 } | 1347 } |
| 1347 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1348 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1348 } // namespace internal | 1349 } // namespace internal |
| 1349 } // namespace v8 | 1350 } // namespace v8 |
| OLD | NEW |