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 <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 case FILLER_TYPE: | 145 case FILLER_TYPE: |
146 os << "filler"; | 146 os << "filler"; |
147 break; | 147 break; |
148 case JS_OBJECT_TYPE: // fall through | 148 case JS_OBJECT_TYPE: // fall through |
149 case JS_API_OBJECT_TYPE: | 149 case JS_API_OBJECT_TYPE: |
150 case JS_SPECIAL_API_OBJECT_TYPE: | 150 case JS_SPECIAL_API_OBJECT_TYPE: |
151 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 151 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
152 case JS_GENERATOR_OBJECT_TYPE: | 152 case JS_GENERATOR_OBJECT_TYPE: |
153 case JS_ARGUMENTS_TYPE: | 153 case JS_ARGUMENTS_TYPE: |
154 case JS_ERROR_TYPE: | 154 case JS_ERROR_TYPE: |
| 155 case JS_PROMISE_CAPABILITY_TYPE: |
155 JSObject::cast(this)->JSObjectPrint(os); | 156 JSObject::cast(this)->JSObjectPrint(os); |
156 break; | 157 break; |
157 case JS_PROMISE_TYPE: | 158 case JS_PROMISE_TYPE: |
158 JSPromise::cast(this)->JSPromisePrint(os); | 159 JSPromise::cast(this)->JSPromisePrint(os); |
159 break; | 160 break; |
160 case JS_ARRAY_TYPE: | 161 case JS_ARRAY_TYPE: |
161 JSArray::cast(this)->JSArrayPrint(os); | 162 JSArray::cast(this)->JSArrayPrint(os); |
162 break; | 163 break; |
163 case JS_REGEXP_TYPE: | 164 case JS_REGEXP_TYPE: |
164 JSRegExp::cast(this)->JSRegExpPrint(os); | 165 JSRegExp::cast(this)->JSRegExpPrint(os); |
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 printf("Not a transition array\n"); | 1685 printf("Not a transition array\n"); |
1685 } else { | 1686 } else { |
1686 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1687 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1687 } | 1688 } |
1688 } | 1689 } |
1689 | 1690 |
1690 extern void _v8_internal_Print_StackTrace() { | 1691 extern void _v8_internal_Print_StackTrace() { |
1691 i::Isolate* isolate = i::Isolate::Current(); | 1692 i::Isolate* isolate = i::Isolate::Current(); |
1692 isolate->PrintStack(stdout); | 1693 isolate->PrintStack(stdout); |
1693 } | 1694 } |
OLD | NEW |