Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: src/objects-printer.cc

Issue 2964943002: [wasm] Introduce instance types for WebAssembly.* objects. (Closed)
Patch Set: Update v8heapconst.py again Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 extern void _v8_internal_Print_TransitionTree(void* object) { 1835 extern void _v8_internal_Print_TransitionTree(void* object) {
1832 i::Object* o = reinterpret_cast<i::Object*>(object); 1836 i::Object* o = reinterpret_cast<i::Object*>(object);
1833 if (!o->IsMap()) { 1837 if (!o->IsMap()) {
1834 printf("Please provide a valid Map\n"); 1838 printf("Please provide a valid Map\n");
1835 } else { 1839 } else {
1836 #if defined(DEBUG) || defined(OBJECT_PRINT) 1840 #if defined(DEBUG) || defined(OBJECT_PRINT)
1837 i::TransitionArray::PrintTransitionTree(reinterpret_cast<i::Map*>(object)); 1841 i::TransitionArray::PrintTransitionTree(reinterpret_cast<i::Map*>(object));
1838 #endif 1842 #endif
1839 } 1843 }
1840 } 1844 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698