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

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

Issue 1435273002: Fix name shown by devtools for subclasses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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-inl.h ('k') | src/profiler/heap-snapshot-generator.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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 os << "\n - value: " << Brief(value()); 988 os << "\n - value: " << Brief(value());
989 os << "\n"; 989 os << "\n";
990 } 990 }
991 991
992 992
993 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT 993 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
994 HeapObject::PrintHeader(os, "PrototypeInfo"); 994 HeapObject::PrintHeader(os, "PrototypeInfo");
995 os << "\n - prototype users: " << Brief(prototype_users()); 995 os << "\n - prototype users: " << Brief(prototype_users());
996 os << "\n - registry slot: " << registry_slot(); 996 os << "\n - registry slot: " << registry_slot();
997 os << "\n - validity cell: " << Brief(validity_cell()); 997 os << "\n - validity cell: " << Brief(validity_cell());
998 os << "\n - constructor name: " << Brief(constructor_name());
999 os << "\n"; 998 os << "\n";
1000 } 999 }
1001 1000
1002 1001
1003 void SloppyBlockWithEvalContextExtension:: 1002 void SloppyBlockWithEvalContextExtension::
1004 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT 1003 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT
1005 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension"); 1004 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension");
1006 os << "\n - scope_info: " << Brief(scope_info()); 1005 os << "\n - scope_info: " << Brief(scope_info());
1007 os << "\n - extension: " << Brief(extension()); 1006 os << "\n - extension: " << Brief(extension());
1008 os << "\n"; 1007 os << "\n";
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1332 Object* transitions = map()->raw_transitions(); 1331 Object* transitions = map()->raw_transitions();
1333 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1334 if (num_transitions == 0) return; 1333 if (num_transitions == 0) return;
1335 os << "\n - transitions"; 1334 os << "\n - transitions";
1336 TransitionArray::PrintTransitions(os, transitions, false); 1335 TransitionArray::PrintTransitions(os, transitions, false);
1337 } 1336 }
1338 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1339 } // namespace internal 1338 } // namespace internal
1340 } // namespace v8 1339 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698