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

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

Issue 1846963002: Use a dictionary-mode code cache on the map rather than a dual system. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 "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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 } 493 }
494 os << "\n - prototype: " << Brief(prototype()); 494 os << "\n - prototype: " << Brief(prototype());
495 os << "\n - constructor: " << Brief(GetConstructor()); 495 os << "\n - constructor: " << Brief(GetConstructor());
496 os << "\n - code cache: " << Brief(code_cache()); 496 os << "\n - code cache: " << Brief(code_cache());
497 os << "\n - dependent code: " << Brief(dependent_code()); 497 os << "\n - dependent code: " << Brief(dependent_code());
498 os << "\n - construction counter: " << construction_counter(); 498 os << "\n - construction counter: " << construction_counter();
499 os << "\n"; 499 os << "\n";
500 } 500 }
501 501
502 502
503 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT
504 HeapObject::PrintHeader(os, "CodeCache");
505 os << "\n - default_cache: " << Brief(default_cache());
506 os << "\n - normal_type_cache: " << Brief(normal_type_cache());
507 }
508
509
510 void PolymorphicCodeCache::PolymorphicCodeCachePrint(
511 std::ostream& os) { // NOLINT
512 HeapObject::PrintHeader(os, "PolymorphicCodeCache");
513 os << "\n - cache: " << Brief(cache());
514 }
515
516
517 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT 503 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT
518 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); 504 HeapObject::PrintHeader(os, "TypeFeedbackInfo");
519 os << "\n - ic_total_count: " << ic_total_count() 505 os << "\n - ic_total_count: " << ic_total_count()
520 << ", ic_with_type_info_count: " << ic_with_type_info_count() 506 << ", ic_with_type_info_count: " << ic_with_type_info_count()
521 << ", ic_generic_count: " << ic_generic_count() << "\n"; 507 << ", ic_generic_count: " << ic_generic_count() << "\n";
522 } 508 }
523 509
524 510
525 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint( 511 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint(
526 std::ostream& os) { // NOLINT 512 std::ostream& os) { // NOLINT
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1331 Object* transitions = map()->raw_transitions(); 1317 Object* transitions = map()->raw_transitions();
1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1333 if (num_transitions == 0) return; 1319 if (num_transitions == 0) return;
1334 os << "\n - transitions"; 1320 os << "\n - transitions";
1335 TransitionArray::PrintTransitions(os, transitions, false); 1321 TransitionArray::PrintTransitions(os, transitions, false);
1336 } 1322 }
1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1338 } // namespace internal 1324 } // namespace internal
1339 } // namespace v8 1325 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698