Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index db716505deabb8ed8fe66e9e855ababe06935e22..27dbdd1d623d3748270bd035c43603b3e406ab98 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -109,9 +109,6 @@ |
break; |
case JS_MODULE_TYPE: |
JSModule::cast(this)->JSModulePrint(os); |
- break; |
- case JS_BOUND_FUNCTION_TYPE: |
- JSBoundFunction::cast(this)->JSBoundFunctionPrint(os); |
break; |
case JS_FUNCTION_TYPE: |
JSFunction::cast(this)->JSFunctionPrint(os); |
@@ -847,15 +844,6 @@ |
} |
-void JSBoundFunction::JSBoundFunctionPrint(std::ostream& os) { // NOLINT |
- JSObjectPrintHeader(os, this, "JSBoundFunction"); |
- os << "\n - bound_target_function = " << Brief(bound_target_function()); |
- os << "\n - bound_this = " << Brief(bound_this()); |
- os << "\n - bound_arguments = " << Brief(bound_arguments()); |
- JSObjectPrintBody(os, this); |
-} |
- |
- |
void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT |
JSObjectPrintHeader(os, this, "Function"); |
os << "\n - initial_map = "; |
@@ -866,7 +854,11 @@ |
os << "\n - generator"; |
} |
os << "\n - context = " << Brief(context()); |
- os << "\n - literals = " << Brief(literals()); |
+ if (shared()->bound()) { |
+ os << "\n - bindings = " << Brief(function_bindings()); |
+ } else { |
+ os << "\n - literals = " << Brief(literals()); |
+ } |
os << "\n - code = " << Brief(code()); |
JSObjectPrintBody(os, this); |
} |