Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 6b9ad82f341c0f1073389cb0c2ab6018a34a0afe..62bf67ea5011f5fff9b1867a0739a47e7bd846ee 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -23,8 +23,10 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
+class FrameStateDescriptor; |
class Schedule; |
+ |
class InstructionOperand { |
public: |
static const int kInvalidVirtualRegister = -1; |
@@ -105,6 +107,9 @@ class InstructionOperand { |
}; |
+typedef ZoneVector<InstructionOperand> InstructionOperandVector; |
+ |
+ |
struct PrintableInstructionOperand { |
const RegisterConfiguration* register_configuration_; |
InstructionOperand op_; |
@@ -928,48 +933,6 @@ class Constant final { |
}; |
-class FrameStateDescriptor : public ZoneObject { |
- public: |
- FrameStateDescriptor(Zone* zone, FrameStateType type, BailoutId bailout_id, |
- OutputFrameStateCombine state_combine, |
- size_t parameters_count, size_t locals_count, |
- size_t stack_count, |
- MaybeHandle<SharedFunctionInfo> shared_info, |
- FrameStateDescriptor* outer_state = nullptr); |
- |
- FrameStateType type() const { return type_; } |
- BailoutId bailout_id() const { return bailout_id_; } |
- OutputFrameStateCombine state_combine() const { return frame_state_combine_; } |
- size_t parameters_count() const { return parameters_count_; } |
- size_t locals_count() const { return locals_count_; } |
- size_t stack_count() const { return stack_count_; } |
- MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } |
- FrameStateDescriptor* outer_state() const { return outer_state_; } |
- bool HasContext() const { |
- return type_ == FrameStateType::kJavaScriptFunction; |
- } |
- |
- size_t GetSize(OutputFrameStateCombine combine = |
- OutputFrameStateCombine::Ignore()) const; |
- size_t GetTotalSize() const; |
- size_t GetFrameCount() const; |
- size_t GetJSFrameCount() const; |
- |
- MachineType GetType(size_t index) const; |
- void SetType(size_t index, MachineType type); |
- |
- private: |
- FrameStateType type_; |
- BailoutId bailout_id_; |
- OutputFrameStateCombine frame_state_combine_; |
- size_t parameters_count_; |
- size_t locals_count_; |
- size_t stack_count_; |
- ZoneVector<MachineType> types_; |
- MaybeHandle<SharedFunctionInfo> const shared_info_; |
- FrameStateDescriptor* outer_state_; |
-}; |
- |
std::ostream& operator<<(std::ostream& os, const Constant& constant); |