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

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

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/frame-states.cc ('k') | src/compiler/instruction.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 #ifndef V8_COMPILER_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 947
948 FrameStateType type() const { return type_; } 948 FrameStateType type() const { return type_; }
949 BailoutId bailout_id() const { return bailout_id_; } 949 BailoutId bailout_id() const { return bailout_id_; }
950 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } 950 OutputFrameStateCombine state_combine() const { return frame_state_combine_; }
951 size_t parameters_count() const { return parameters_count_; } 951 size_t parameters_count() const { return parameters_count_; }
952 size_t locals_count() const { return locals_count_; } 952 size_t locals_count() const { return locals_count_; }
953 size_t stack_count() const { return stack_count_; } 953 size_t stack_count() const { return stack_count_; }
954 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } 954 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; }
955 FrameStateDescriptor* outer_state() const { return outer_state_; } 955 FrameStateDescriptor* outer_state() const { return outer_state_; }
956 bool HasContext() const { 956 bool HasContext() const {
957 return type_ == FrameStateType::kJavaScriptFunction; 957 return FrameStateFunctionInfo::IsJSFunctionType(type_);
958 } 958 }
959 959
960 size_t GetSize(OutputFrameStateCombine combine = 960 size_t GetSize(OutputFrameStateCombine combine =
961 OutputFrameStateCombine::Ignore()) const; 961 OutputFrameStateCombine::Ignore()) const;
962 size_t GetTotalSize() const; 962 size_t GetTotalSize() const;
963 size_t GetFrameCount() const; 963 size_t GetFrameCount() const;
964 size_t GetJSFrameCount() const; 964 size_t GetJSFrameCount() const;
965 965
966 MachineType GetType(size_t index) const; 966 MachineType GetType(size_t index) const;
967 void SetType(size_t index, MachineType type); 967 void SetType(size_t index, MachineType type);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 1288
1289 1289
1290 std::ostream& operator<<(std::ostream& os, 1290 std::ostream& operator<<(std::ostream& os,
1291 const PrintableInstructionSequence& code); 1291 const PrintableInstructionSequence& code);
1292 1292
1293 } // namespace compiler 1293 } // namespace compiler
1294 } // namespace internal 1294 } // namespace internal
1295 } // namespace v8 1295 } // namespace v8
1296 1296
1297 #endif // V8_COMPILER_INSTRUCTION_H_ 1297 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/frame-states.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698