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 #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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 FrameStateDescriptor* outer_state = nullptr); | 870 FrameStateDescriptor* outer_state = nullptr); |
871 | 871 |
872 FrameStateType type() const { return type_; } | 872 FrameStateType type() const { return type_; } |
873 BailoutId bailout_id() const { return bailout_id_; } | 873 BailoutId bailout_id() const { return bailout_id_; } |
874 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } | 874 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } |
875 size_t parameters_count() const { return parameters_count_; } | 875 size_t parameters_count() const { return parameters_count_; } |
876 size_t locals_count() const { return locals_count_; } | 876 size_t locals_count() const { return locals_count_; } |
877 size_t stack_count() const { return stack_count_; } | 877 size_t stack_count() const { return stack_count_; } |
878 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } | 878 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } |
879 FrameStateDescriptor* outer_state() const { return outer_state_; } | 879 FrameStateDescriptor* outer_state() const { return outer_state_; } |
880 bool HasContext() const { return type_ == JS_FRAME; } | 880 bool HasContext() const { |
| 881 return type_ == FrameStateType::kJavaScriptFunction; |
| 882 } |
881 | 883 |
882 size_t GetSize(OutputFrameStateCombine combine = | 884 size_t GetSize(OutputFrameStateCombine combine = |
883 OutputFrameStateCombine::Ignore()) const; | 885 OutputFrameStateCombine::Ignore()) const; |
884 size_t GetTotalSize() const; | 886 size_t GetTotalSize() const; |
885 size_t GetFrameCount() const; | 887 size_t GetFrameCount() const; |
886 size_t GetJSFrameCount() const; | 888 size_t GetJSFrameCount() const; |
887 | 889 |
888 MachineType GetType(size_t index) const; | 890 MachineType GetType(size_t index) const; |
889 void SetType(size_t index, MachineType type); | 891 void SetType(size_t index, MachineType type); |
890 | 892 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 | 1203 |
1202 | 1204 |
1203 std::ostream& operator<<(std::ostream& os, | 1205 std::ostream& operator<<(std::ostream& os, |
1204 const PrintableInstructionSequence& code); | 1206 const PrintableInstructionSequence& code); |
1205 | 1207 |
1206 } // namespace compiler | 1208 } // namespace compiler |
1207 } // namespace internal | 1209 } // namespace internal |
1208 } // namespace v8 | 1210 } // namespace v8 |
1209 | 1211 |
1210 #endif // V8_COMPILER_INSTRUCTION_H_ | 1212 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |