| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 146       break; | 146       break; | 
| 147     case JS_OBJECT_TYPE:  // fall through | 147     case JS_OBJECT_TYPE:  // fall through | 
| 148     case JS_API_OBJECT_TYPE: | 148     case JS_API_OBJECT_TYPE: | 
| 149     case JS_SPECIAL_API_OBJECT_TYPE: | 149     case JS_SPECIAL_API_OBJECT_TYPE: | 
| 150     case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 150     case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 
| 151     case JS_GENERATOR_OBJECT_TYPE: | 151     case JS_GENERATOR_OBJECT_TYPE: | 
| 152     case JS_ASYNC_GENERATOR_OBJECT_TYPE: | 152     case JS_ASYNC_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     case JS_PROMISE_CAPABILITY_TYPE: | 
|  | 156     case WASM_INSTANCE_TYPE:  // TODO(titzer): debug printing for wasm objects | 
|  | 157     case WASM_MEMORY_TYPE: | 
|  | 158     case WASM_MODULE_TYPE: | 
|  | 159     case WASM_TABLE_TYPE: | 
| 156       JSObject::cast(this)->JSObjectPrint(os); | 160       JSObject::cast(this)->JSObjectPrint(os); | 
| 157       break; | 161       break; | 
| 158     case JS_PROMISE_TYPE: | 162     case JS_PROMISE_TYPE: | 
| 159       JSPromise::cast(this)->JSPromisePrint(os); | 163       JSPromise::cast(this)->JSPromisePrint(os); | 
| 160       break; | 164       break; | 
| 161     case JS_ARRAY_TYPE: | 165     case JS_ARRAY_TYPE: | 
| 162       JSArray::cast(this)->JSArrayPrint(os); | 166       JSArray::cast(this)->JSArrayPrint(os); | 
| 163       break; | 167       break; | 
| 164     case JS_REGEXP_TYPE: | 168     case JS_REGEXP_TYPE: | 
| 165       JSRegExp::cast(this)->JSRegExpPrint(os); | 169       JSRegExp::cast(this)->JSRegExpPrint(os); | 
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1836 extern void _v8_internal_Print_TransitionTree(void* object) { | 1840 extern void _v8_internal_Print_TransitionTree(void* object) { | 
| 1837   i::Object* o = reinterpret_cast<i::Object*>(object); | 1841   i::Object* o = reinterpret_cast<i::Object*>(object); | 
| 1838   if (!o->IsMap()) { | 1842   if (!o->IsMap()) { | 
| 1839     printf("Please provide a valid Map\n"); | 1843     printf("Please provide a valid Map\n"); | 
| 1840   } else { | 1844   } else { | 
| 1841 #if defined(DEBUG) || defined(OBJECT_PRINT) | 1845 #if defined(DEBUG) || defined(OBJECT_PRINT) | 
| 1842     i::TransitionArray::PrintTransitionTree(reinterpret_cast<i::Map*>(object)); | 1846     i::TransitionArray::PrintTransitionTree(reinterpret_cast<i::Map*>(object)); | 
| 1843 #endif | 1847 #endif | 
| 1844   } | 1848   } | 
| 1845 } | 1849 } | 
| OLD | NEW | 
|---|