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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 | 938 |
939 FrameStateType type() const { return type_; } | 939 FrameStateType type() const { return type_; } |
940 BailoutId bailout_id() const { return bailout_id_; } | 940 BailoutId bailout_id() const { return bailout_id_; } |
941 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } | 941 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } |
942 size_t parameters_count() const { return parameters_count_; } | 942 size_t parameters_count() const { return parameters_count_; } |
943 size_t locals_count() const { return locals_count_; } | 943 size_t locals_count() const { return locals_count_; } |
944 size_t stack_count() const { return stack_count_; } | 944 size_t stack_count() const { return stack_count_; } |
945 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } | 945 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } |
946 FrameStateDescriptor* outer_state() const { return outer_state_; } | 946 FrameStateDescriptor* outer_state() const { return outer_state_; } |
947 bool HasContext() const { | 947 bool HasContext() const { |
948 return type_ == FrameStateType::kJavaScriptFunction; | 948 return FrameStateFunctionInfo::IsJSFunctionType(type_); |
949 } | 949 } |
950 | 950 |
951 size_t GetSize(OutputFrameStateCombine combine = | 951 size_t GetSize(OutputFrameStateCombine combine = |
952 OutputFrameStateCombine::Ignore()) const; | 952 OutputFrameStateCombine::Ignore()) const; |
953 size_t GetTotalSize() const; | 953 size_t GetTotalSize() const; |
954 size_t GetFrameCount() const; | 954 size_t GetFrameCount() const; |
955 size_t GetJSFrameCount() const; | 955 size_t GetJSFrameCount() const; |
956 | 956 |
957 MachineType GetType(size_t index) const; | 957 MachineType GetType(size_t index) const; |
958 void SetType(size_t index, MachineType type); | 958 void SetType(size_t index, MachineType type); |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 | 1277 |
1278 | 1278 |
1279 std::ostream& operator<<(std::ostream& os, | 1279 std::ostream& operator<<(std::ostream& os, |
1280 const PrintableInstructionSequence& code); | 1280 const PrintableInstructionSequence& code); |
1281 | 1281 |
1282 } // namespace compiler | 1282 } // namespace compiler |
1283 } // namespace internal | 1283 } // namespace internal |
1284 } // namespace v8 | 1284 } // namespace v8 |
1285 | 1285 |
1286 #endif // V8_COMPILER_INSTRUCTION_H_ | 1286 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |