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

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

Issue 1996943002: [esnext] Fix various callsites to use is_resumable, not is_generator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't pass unneeded zero Created 4 years, 6 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
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT 869 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
870 JSObjectPrintHeader(os, this, "Function"); 870 JSObjectPrintHeader(os, this, "Function");
871 os << "\n - initial_map = "; 871 os << "\n - initial_map = ";
872 if (has_initial_map()) os << Brief(initial_map()); 872 if (has_initial_map()) os << Brief(initial_map());
873 os << "\n - shared_info = " << Brief(shared()); 873 os << "\n - shared_info = " << Brief(shared());
874 os << "\n - name = " << Brief(shared()->name()); 874 os << "\n - name = " << Brief(shared()->name());
875 os << "\n - formal_parameter_count = " 875 os << "\n - formal_parameter_count = "
876 << shared()->internal_formal_parameter_count(); 876 << shared()->internal_formal_parameter_count();
877 if (shared()->is_generator()) { 877 if (shared()->is_generator()) {
878 os << "\n - generator"; 878 os << "\n - generator";
879 } else if (shared()->is_async()) {
880 os << "\n - async";
879 } 881 }
880 os << "\n - context = " << Brief(context()); 882 os << "\n - context = " << Brief(context());
881 os << "\n - literals = " << Brief(literals()); 883 os << "\n - literals = " << Brief(literals());
882 os << "\n - code = " << Brief(code()); 884 os << "\n - code = " << Brief(code());
883 JSObjectPrintBody(os, this); 885 JSObjectPrintBody(os, this);
884 } 886 }
885 887
886 888
887 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT 889 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
888 HeapObject::PrintHeader(os, "SharedFunctionInfo"); 890 HeapObject::PrintHeader(os, "SharedFunctionInfo");
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1341 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1340 Object* transitions = map()->raw_transitions(); 1342 Object* transitions = map()->raw_transitions();
1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1343 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1342 if (num_transitions == 0) return; 1344 if (num_transitions == 0) return;
1343 os << "\n - transitions"; 1345 os << "\n - transitions";
1344 TransitionArray::PrintTransitions(os, transitions, false); 1346 TransitionArray::PrintTransitions(os, transitions, false);
1345 } 1347 }
1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1348 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1347 } // namespace internal 1349 } // namespace internal
1348 } // namespace v8 1350 } // namespace v8
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698