Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/compiler/instruction.cc

Issue 1191243003: [turbofan] Factor out the function specific part from the frame state operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698