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

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

Issue 1514413002: [Interpreter] Generate valid FrameStates in the Bytecode Graph Builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_materialize_sf
Patch Set: Add checks that environment doesn't change after state nodes are attached Created 5 years 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/js-typed-lowering.h » ('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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698