| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 ++count; | 714 ++count; |
| 715 } | 715 } |
| 716 return count; | 716 return count; |
| 717 } | 717 } |
| 718 | 718 |
| 719 | 719 |
| 720 size_t FrameStateDescriptor::GetJSFrameCount() const { | 720 size_t FrameStateDescriptor::GetJSFrameCount() const { |
| 721 size_t count = 0; | 721 size_t count = 0; |
| 722 for (const FrameStateDescriptor* iter = this; iter != NULL; | 722 for (const FrameStateDescriptor* iter = this; iter != NULL; |
| 723 iter = iter->outer_state_) { | 723 iter = iter->outer_state_) { |
| 724 if (iter->type_ == JS_FRAME) { | 724 if (iter->type_ == FrameStateType::kJavaScriptFunction) { |
| 725 ++count; | 725 ++count; |
| 726 } | 726 } |
| 727 } | 727 } |
| 728 return count; | 728 return count; |
| 729 } | 729 } |
| 730 | 730 |
| 731 | 731 |
| 732 MachineType FrameStateDescriptor::GetType(size_t index) const { | 732 MachineType FrameStateDescriptor::GetType(size_t index) const { |
| 733 return types_[index]; | 733 return types_[index]; |
| 734 } | 734 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 os << " B" << succ.ToInt(); | 805 os << " B" << succ.ToInt(); |
| 806 } | 806 } |
| 807 os << "\n"; | 807 os << "\n"; |
| 808 } | 808 } |
| 809 return os; | 809 return os; |
| 810 } | 810 } |
| 811 | 811 |
| 812 } // namespace compiler | 812 } // namespace compiler |
| 813 } // namespace internal | 813 } // namespace internal |
| 814 } // namespace v8 | 814 } // namespace v8 |
| OLD | NEW |