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/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 CompareICNexus nexus(this, slot); | 795 CompareICNexus nexus(this, slot); |
796 os << Code::ICState2String(nexus.StateFromFeedback()); | 796 os << Code::ICState2String(nexus.StateFromFeedback()); |
797 break; | 797 break; |
798 } | 798 } |
799 case FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC: { | 799 case FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC: { |
800 StoreDataPropertyInLiteralICNexus nexus(this, slot); | 800 StoreDataPropertyInLiteralICNexus nexus(this, slot); |
801 os << Code::ICState2String(nexus.StateFromFeedback()); | 801 os << Code::ICState2String(nexus.StateFromFeedback()); |
802 break; | 802 break; |
803 } | 803 } |
804 case FeedbackVectorSlotKind::CREATE_CLOSURE: | 804 case FeedbackVectorSlotKind::CREATE_CLOSURE: |
| 805 case FeedbackVectorSlotKind::LITERAL: |
805 case FeedbackVectorSlotKind::GENERAL: | 806 case FeedbackVectorSlotKind::GENERAL: |
806 break; | 807 break; |
807 case FeedbackVectorSlotKind::INVALID: | 808 case FeedbackVectorSlotKind::INVALID: |
808 case FeedbackVectorSlotKind::KINDS_NUMBER: | 809 case FeedbackVectorSlotKind::KINDS_NUMBER: |
809 UNREACHABLE(); | 810 UNREACHABLE(); |
810 break; | 811 break; |
811 } | 812 } |
812 | 813 |
813 int entry_size = iter.entry_size(); | 814 int entry_size = iter.entry_size(); |
814 for (int i = 0; i < entry_size; i++) { | 815 for (int i = 0; i < entry_size; i++) { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 os << "\n - shared_info = " << Brief(shared()); | 1045 os << "\n - shared_info = " << Brief(shared()); |
1045 os << "\n - name = " << Brief(shared()->name()); | 1046 os << "\n - name = " << Brief(shared()->name()); |
1046 os << "\n - formal_parameter_count = " | 1047 os << "\n - formal_parameter_count = " |
1047 << shared()->internal_formal_parameter_count(); | 1048 << shared()->internal_formal_parameter_count(); |
1048 if (IsGeneratorFunction(shared()->kind())) { | 1049 if (IsGeneratorFunction(shared()->kind())) { |
1049 os << "\n - generator"; | 1050 os << "\n - generator"; |
1050 } else if (IsAsyncFunction(shared()->kind())) { | 1051 } else if (IsAsyncFunction(shared()->kind())) { |
1051 os << "\n - async"; | 1052 os << "\n - async"; |
1052 } | 1053 } |
1053 os << "\n - context = " << Brief(context()); | 1054 os << "\n - context = " << Brief(context()); |
1054 os << "\n - literals = " << Brief(literals()); | 1055 os << "\n - feedback vector = " << Brief(feedback_vector()); |
1055 os << "\n - code = " << Brief(code()); | 1056 os << "\n - code = " << Brief(code()); |
1056 JSObjectPrintBody(os, this); | 1057 JSObjectPrintBody(os, this); |
1057 } | 1058 } |
1058 | 1059 |
1059 | 1060 |
1060 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT | 1061 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT |
1061 HeapObject::PrintHeader(os, "SharedFunctionInfo"); | 1062 HeapObject::PrintHeader(os, "SharedFunctionInfo"); |
1062 os << "\n - name = " << Brief(name()); | 1063 os << "\n - name = " << Brief(name()); |
1063 os << "\n - formal_parameter_count = " << internal_formal_parameter_count(); | 1064 os << "\n - formal_parameter_count = " << internal_formal_parameter_count(); |
1064 os << "\n - expected_nof_properties = " << expected_nof_properties(); | 1065 os << "\n - expected_nof_properties = " << expected_nof_properties(); |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 printf("Not a transition array\n"); | 1714 printf("Not a transition array\n"); |
1714 } else { | 1715 } else { |
1715 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1716 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1716 } | 1717 } |
1717 } | 1718 } |
1718 | 1719 |
1719 extern void _v8_internal_Print_StackTrace() { | 1720 extern void _v8_internal_Print_StackTrace() { |
1720 i::Isolate* isolate = i::Isolate::Current(); | 1721 i::Isolate* isolate = i::Isolate::Current(); |
1721 isolate->PrintStack(stdout); | 1722 isolate->PrintStack(stdout); |
1722 } | 1723 } |
OLD | NEW |