OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
7 #include "src/compiler/instruction.h" | 7 #include "src/compiler/instruction.h" |
8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 ++count; | 794 ++count; |
795 } | 795 } |
796 return count; | 796 return count; |
797 } | 797 } |
798 | 798 |
799 | 799 |
800 size_t FrameStateDescriptor::GetJSFrameCount() const { | 800 size_t FrameStateDescriptor::GetJSFrameCount() const { |
801 size_t count = 0; | 801 size_t count = 0; |
802 for (const FrameStateDescriptor* iter = this; iter != NULL; | 802 for (const FrameStateDescriptor* iter = this; iter != NULL; |
803 iter = iter->outer_state_) { | 803 iter = iter->outer_state_) { |
804 if (iter->type_ == FrameStateType::kJavaScriptFunction) { | 804 if (FrameStateFunctionInfo::IsJSFunctionType(iter->type_)) { |
805 ++count; | 805 ++count; |
806 } | 806 } |
807 } | 807 } |
808 return count; | 808 return count; |
809 } | 809 } |
810 | 810 |
811 | 811 |
812 MachineType FrameStateDescriptor::GetType(size_t index) const { | 812 MachineType FrameStateDescriptor::GetType(size_t index) const { |
813 return types_[index]; | 813 return types_[index]; |
814 } | 814 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 os << " B" << succ.ToInt(); | 885 os << " B" << succ.ToInt(); |
886 } | 886 } |
887 os << "\n"; | 887 os << "\n"; |
888 } | 888 } |
889 return os; | 889 return os; |
890 } | 890 } |
891 | 891 |
892 } // namespace compiler | 892 } // namespace compiler |
893 } // namespace internal | 893 } // namespace internal |
894 } // namespace v8 | 894 } // namespace v8 |
OLD | NEW |