| 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |