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

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

Issue 1489413006: Revert of Provide call counts for constructor calls, surface them as a vector IC. (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/type-feedback-vector.h » ('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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 case FeedbackVectorSlotKind::KEYED_LOAD_IC: { 612 case FeedbackVectorSlotKind::KEYED_LOAD_IC: {
613 KeyedLoadICNexus nexus(this, slot); 613 KeyedLoadICNexus nexus(this, slot);
614 os << Code::ICState2String(nexus.StateFromFeedback()); 614 os << Code::ICState2String(nexus.StateFromFeedback());
615 break; 615 break;
616 } 616 }
617 case FeedbackVectorSlotKind::CALL_IC: { 617 case FeedbackVectorSlotKind::CALL_IC: {
618 CallICNexus nexus(this, slot); 618 CallICNexus nexus(this, slot);
619 os << Code::ICState2String(nexus.StateFromFeedback()); 619 os << Code::ICState2String(nexus.StateFromFeedback());
620 break; 620 break;
621 } 621 }
622 case FeedbackVectorSlotKind::CONSTRUCT_IC: {
623 ConstructICNexus nexus(this, slot);
624 os << Code::ICState2String(nexus.StateFromFeedback());
625 break;
626 }
627 case FeedbackVectorSlotKind::STORE_IC: { 622 case FeedbackVectorSlotKind::STORE_IC: {
628 StoreICNexus nexus(this, slot); 623 StoreICNexus nexus(this, slot);
629 os << Code::ICState2String(nexus.StateFromFeedback()); 624 os << Code::ICState2String(nexus.StateFromFeedback());
630 break; 625 break;
631 } 626 }
632 case FeedbackVectorSlotKind::KEYED_STORE_IC: { 627 case FeedbackVectorSlotKind::KEYED_STORE_IC: {
633 KeyedStoreICNexus nexus(this, slot); 628 KeyedStoreICNexus nexus(this, slot);
634 os << Code::ICState2String(nexus.StateFromFeedback()); 629 os << Code::ICState2String(nexus.StateFromFeedback());
635 break; 630 break;
636 } 631 }
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1329 Object* transitions = map()->raw_transitions(); 1324 Object* transitions = map()->raw_transitions();
1330 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1331 if (num_transitions == 0) return; 1326 if (num_transitions == 0) return;
1332 os << "\n - transitions"; 1327 os << "\n - transitions";
1333 TransitionArray::PrintTransitions(os, transitions, false); 1328 TransitionArray::PrintTransitions(os, transitions, false);
1334 } 1329 }
1335 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1336 } // namespace internal 1331 } // namespace internal
1337 } // namespace v8 1332 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698