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

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

Issue 1768263004: [turbofan] [deoptimizer] Support inlining of ES6 tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments, StandardFrameConstants -> CommonFrameConstants Created 4 years, 9 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/objects.cc ('k') | src/runtime/runtime-compiler.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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 JSObjectPrintBody(os, this); 855 JSObjectPrintBody(os, this);
856 } 856 }
857 857
858 858
859 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT 859 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
860 JSObjectPrintHeader(os, this, "Function"); 860 JSObjectPrintHeader(os, this, "Function");
861 os << "\n - initial_map = "; 861 os << "\n - initial_map = ";
862 if (has_initial_map()) os << Brief(initial_map()); 862 if (has_initial_map()) os << Brief(initial_map());
863 os << "\n - shared_info = " << Brief(shared()); 863 os << "\n - shared_info = " << Brief(shared());
864 os << "\n - name = " << Brief(shared()->name()); 864 os << "\n - name = " << Brief(shared()->name());
865 os << "\n - formal_parameter_count = "
866 << shared()->internal_formal_parameter_count();
865 if (shared()->is_generator()) { 867 if (shared()->is_generator()) {
866 os << "\n - generator"; 868 os << "\n - generator";
867 } 869 }
868 os << "\n - context = " << Brief(context()); 870 os << "\n - context = " << Brief(context());
869 os << "\n - literals = " << Brief(literals()); 871 os << "\n - literals = " << Brief(literals());
870 os << "\n - code = " << Brief(code()); 872 os << "\n - code = " << Brief(code());
871 JSObjectPrintBody(os, this); 873 JSObjectPrintBody(os, this);
872 } 874 }
873 875
874 876
875 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT 877 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
876 HeapObject::PrintHeader(os, "SharedFunctionInfo"); 878 HeapObject::PrintHeader(os, "SharedFunctionInfo");
877 os << "\n - name: " << Brief(name()); 879 os << "\n - name = " << Brief(name());
878 os << "\n - expected_nof_properties: " << expected_nof_properties(); 880 os << "\n - formal_parameter_count = " << internal_formal_parameter_count();
879 os << "\n - ast_node_count: " << ast_node_count(); 881 os << "\n - expected_nof_properties = " << expected_nof_properties();
882 os << "\n - ast_node_count = " << ast_node_count();
880 os << "\n - instance class name = "; 883 os << "\n - instance class name = ";
881 instance_class_name()->Print(os); 884 instance_class_name()->Print(os);
882 os << "\n - code = " << Brief(code()); 885 os << "\n - code = " << Brief(code());
883 if (HasSourceCode()) { 886 if (HasSourceCode()) {
884 os << "\n - source code = "; 887 os << "\n - source code = ";
885 String* source = String::cast(Script::cast(script())->source()); 888 String* source = String::cast(Script::cast(script())->source());
886 int start = start_position(); 889 int start = start_position();
887 int length = end_position() - start; 890 int length = end_position() - start;
888 base::SmartArrayPointer<char> source_string = source->ToCString( 891 base::SmartArrayPointer<char> source_string = source->ToCString(
889 DISALLOW_NULLS, FAST_STRING_TRAVERSAL, start, length, NULL); 892 DISALLOW_NULLS, FAST_STRING_TRAVERSAL, start, length, NULL);
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1332 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1330 Object* transitions = map()->raw_transitions(); 1333 Object* transitions = map()->raw_transitions();
1331 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1334 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1332 if (num_transitions == 0) return; 1335 if (num_transitions == 0) return;
1333 os << "\n - transitions"; 1336 os << "\n - transitions";
1334 TransitionArray::PrintTransitions(os, transitions, false); 1337 TransitionArray::PrintTransitions(os, transitions, false);
1335 } 1338 }
1336 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1339 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1337 } // namespace internal 1340 } // namespace internal
1338 } // namespace v8 1341 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698