| 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_ARGUMENTS_TYPE: |
| 110 case JS_ERROR_TYPE: |
| 109 JSObject::cast(this)->JSObjectPrint(os); | 111 JSObject::cast(this)->JSObjectPrint(os); |
| 110 break; | 112 break; |
| 111 case JS_ARRAY_TYPE: | 113 case JS_ARRAY_TYPE: |
| 112 JSArray::cast(this)->JSArrayPrint(os); | 114 JSArray::cast(this)->JSArrayPrint(os); |
| 113 break; | 115 break; |
| 114 case JS_REGEXP_TYPE: | 116 case JS_REGEXP_TYPE: |
| 115 JSRegExp::cast(this)->JSRegExpPrint(os); | 117 JSRegExp::cast(this)->JSRegExpPrint(os); |
| 116 break; | 118 break; |
| 117 case ODDBALL_TYPE: | 119 case ODDBALL_TYPE: |
| 118 Oddball::cast(this)->to_string()->Print(os); | 120 Oddball::cast(this)->to_string()->Print(os); |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1388 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1387 Object* transitions = map()->raw_transitions(); | 1389 Object* transitions = map()->raw_transitions(); |
| 1388 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1390 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1389 if (num_transitions == 0) return; | 1391 if (num_transitions == 0) return; |
| 1390 os << "\n - transitions"; | 1392 os << "\n - transitions"; |
| 1391 TransitionArray::PrintTransitions(os, transitions, false); | 1393 TransitionArray::PrintTransitions(os, transitions, false); |
| 1392 } | 1394 } |
| 1393 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1395 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1394 } // namespace internal | 1396 } // namespace internal |
| 1395 } // namespace v8 | 1397 } // namespace v8 |
| OLD | NEW |