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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ | 88 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ |
89 break; | 89 break; |
90 | 90 |
91 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) | 91 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) |
92 #undef PRINT_FIXED_TYPED_ARRAY | 92 #undef PRINT_FIXED_TYPED_ARRAY |
93 | 93 |
94 case FILLER_TYPE: | 94 case FILLER_TYPE: |
95 os << "filler"; | 95 os << "filler"; |
96 break; | 96 break; |
97 case JS_OBJECT_TYPE: // fall through | 97 case JS_OBJECT_TYPE: // fall through |
| 98 case JS_SPECIAL_API_OBJECT_TYPE: |
98 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 99 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
99 case JS_ARRAY_TYPE: | 100 case JS_ARRAY_TYPE: |
100 case JS_GENERATOR_OBJECT_TYPE: | 101 case JS_GENERATOR_OBJECT_TYPE: |
101 case JS_PROMISE_TYPE: | 102 case JS_PROMISE_TYPE: |
102 JSObject::cast(this)->JSObjectPrint(os); | 103 JSObject::cast(this)->JSObjectPrint(os); |
103 break; | 104 break; |
104 case JS_REGEXP_TYPE: | 105 case JS_REGEXP_TYPE: |
105 JSRegExp::cast(this)->JSRegExpPrint(os); | 106 JSRegExp::cast(this)->JSRegExpPrint(os); |
106 break; | 107 break; |
107 case ODDBALL_TYPE: | 108 case ODDBALL_TYPE: |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1323 Object* transitions = map()->raw_transitions(); | 1324 Object* transitions = map()->raw_transitions(); |
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1325 if (num_transitions == 0) return; | 1326 if (num_transitions == 0) return; |
1326 os << "\n - transitions"; | 1327 os << "\n - transitions"; |
1327 TransitionArray::PrintTransitions(os, transitions, false); | 1328 TransitionArray::PrintTransitions(os, transitions, false); |
1328 } | 1329 } |
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1330 } // namespace internal | 1331 } // namespace internal |
1331 } // namespace v8 | 1332 } // namespace v8 |
OLD | NEW |