OLD | NEW |
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 FeedbackVectorSlot slot = iter.Next(); | 625 FeedbackVectorSlot slot = iter.Next(); |
626 FeedbackVectorSlotKind kind = iter.kind(); | 626 FeedbackVectorSlotKind kind = iter.kind(); |
627 | 627 |
628 os << "\n Slot " << slot << " " << kind << " "; | 628 os << "\n Slot " << slot << " " << kind << " "; |
629 switch (kind) { | 629 switch (kind) { |
630 case FeedbackVectorSlotKind::LOAD_IC: { | 630 case FeedbackVectorSlotKind::LOAD_IC: { |
631 LoadICNexus nexus(this, slot); | 631 LoadICNexus nexus(this, slot); |
632 os << Code::ICState2String(nexus.StateFromFeedback()); | 632 os << Code::ICState2String(nexus.StateFromFeedback()); |
633 break; | 633 break; |
634 } | 634 } |
| 635 case FeedbackVectorSlotKind::LOAD_GLOBAL_IC: { |
| 636 LoadGlobalICNexus nexus(this, slot); |
| 637 os << Code::ICState2String(nexus.StateFromFeedback()); |
| 638 break; |
| 639 } |
635 case FeedbackVectorSlotKind::KEYED_LOAD_IC: { | 640 case FeedbackVectorSlotKind::KEYED_LOAD_IC: { |
636 KeyedLoadICNexus nexus(this, slot); | 641 KeyedLoadICNexus nexus(this, slot); |
637 os << Code::ICState2String(nexus.StateFromFeedback()); | 642 os << Code::ICState2String(nexus.StateFromFeedback()); |
638 break; | 643 break; |
639 } | 644 } |
640 case FeedbackVectorSlotKind::CALL_IC: { | 645 case FeedbackVectorSlotKind::CALL_IC: { |
641 CallICNexus nexus(this, slot); | 646 CallICNexus nexus(this, slot); |
642 os << Code::ICState2String(nexus.StateFromFeedback()); | 647 os << Code::ICState2String(nexus.StateFromFeedback()); |
643 break; | 648 break; |
644 } | 649 } |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1344 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1340 Object* transitions = map()->raw_transitions(); | 1345 Object* transitions = map()->raw_transitions(); |
1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1346 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1342 if (num_transitions == 0) return; | 1347 if (num_transitions == 0) return; |
1343 os << "\n - transitions"; | 1348 os << "\n - transitions"; |
1344 TransitionArray::PrintTransitions(os, transitions, false); | 1349 TransitionArray::PrintTransitions(os, transitions, false); |
1345 } | 1350 } |
1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1351 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1347 } // namespace internal | 1352 } // namespace internal |
1348 } // namespace v8 | 1353 } // namespace v8 |
OLD | NEW |