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 <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
743 case FeedbackVectorSlotKind::STORE_IC: { | 743 case FeedbackVectorSlotKind::STORE_IC: { |
744 StoreICNexus nexus(this, slot); | 744 StoreICNexus nexus(this, slot); |
745 os << Code::ICState2String(nexus.StateFromFeedback()); | 745 os << Code::ICState2String(nexus.StateFromFeedback()); |
746 break; | 746 break; |
747 } | 747 } |
748 case FeedbackVectorSlotKind::KEYED_STORE_IC: { | 748 case FeedbackVectorSlotKind::KEYED_STORE_IC: { |
749 KeyedStoreICNexus nexus(this, slot); | 749 KeyedStoreICNexus nexus(this, slot); |
750 os << Code::ICState2String(nexus.StateFromFeedback()); | 750 os << Code::ICState2String(nexus.StateFromFeedback()); |
751 break; | 751 break; |
752 } | 752 } |
753 case FeedbackVectorSlotKind::INTERPRETER_BINARYOP_IC: | |
754 case FeedbackVectorSlotKind::INTERPRETER_COMPARE_IC: | |
mythria
2016/09/20 12:35:16
Would it be helpful to print the binary/compare op
mvstanton
2016/09/20 13:19:22
Absolutely, will do!
| |
753 case FeedbackVectorSlotKind::GENERAL: | 755 case FeedbackVectorSlotKind::GENERAL: |
754 break; | 756 break; |
755 case FeedbackVectorSlotKind::INVALID: | 757 case FeedbackVectorSlotKind::INVALID: |
756 case FeedbackVectorSlotKind::KINDS_NUMBER: | 758 case FeedbackVectorSlotKind::KINDS_NUMBER: |
757 UNREACHABLE(); | 759 UNREACHABLE(); |
758 break; | 760 break; |
759 } | 761 } |
760 | 762 |
761 int entry_size = iter.entry_size(); | 763 int entry_size = iter.entry_size(); |
762 for (int i = 0; i < entry_size; i++) { | 764 for (int i = 0; i < entry_size; i++) { |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1523 printf("Not a transition array\n"); | 1525 printf("Not a transition array\n"); |
1524 } else { | 1526 } else { |
1525 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1527 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1526 } | 1528 } |
1527 } | 1529 } |
1528 | 1530 |
1529 extern void _v8_internal_Print_StackTrace() { | 1531 extern void _v8_internal_Print_StackTrace() { |
1530 i::Isolate* isolate = i::Isolate::Current(); | 1532 i::Isolate* isolate = i::Isolate::Current(); |
1531 isolate->PrintStack(stdout); | 1533 isolate->PrintStack(stdout); |
1532 } | 1534 } |
OLD | NEW |