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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 ++count; | 860 ++count; |
861 } | 861 } |
862 return count; | 862 return count; |
863 } | 863 } |
864 | 864 |
865 | 865 |
866 size_t FrameStateDescriptor::GetJSFrameCount() const { | 866 size_t FrameStateDescriptor::GetJSFrameCount() const { |
867 size_t count = 0; | 867 size_t count = 0; |
868 for (const FrameStateDescriptor* iter = this; iter != NULL; | 868 for (const FrameStateDescriptor* iter = this; iter != NULL; |
869 iter = iter->outer_state_) { | 869 iter = iter->outer_state_) { |
870 if (iter->type_ == FrameStateType::kJavaScriptFunction) { | 870 if (FrameStateFunctionInfo::IsJSFunctionType(iter->type_)) { |
871 ++count; | 871 ++count; |
872 } | 872 } |
873 } | 873 } |
874 return count; | 874 return count; |
875 } | 875 } |
876 | 876 |
877 | 877 |
878 MachineType FrameStateDescriptor::GetType(size_t index) const { | 878 MachineType FrameStateDescriptor::GetType(size_t index) const { |
879 return types_[index]; | 879 return types_[index]; |
880 } | 880 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 os << " B" << succ.ToInt(); | 951 os << " B" << succ.ToInt(); |
952 } | 952 } |
953 os << "\n"; | 953 os << "\n"; |
954 } | 954 } |
955 return os; | 955 return os; |
956 } | 956 } |
957 | 957 |
958 } // namespace compiler | 958 } // namespace compiler |
959 } // namespace internal | 959 } // namespace internal |
960 } // namespace v8 | 960 } // namespace v8 |
OLD | NEW |