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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 OutputFrameStateCombine::Ignore()) const; | 1142 OutputFrameStateCombine::Ignore()) const; |
1143 size_t GetTotalSize() const; | 1143 size_t GetTotalSize() const; |
1144 size_t GetFrameCount() const; | 1144 size_t GetFrameCount() const; |
1145 size_t GetJSFrameCount() const; | 1145 size_t GetJSFrameCount() const; |
1146 | 1146 |
1147 MachineType GetType(size_t index) const { | 1147 MachineType GetType(size_t index) const { |
1148 return values_.GetOperandType(index); | 1148 return values_.GetOperandType(index); |
1149 } | 1149 } |
1150 StateValueDescriptor* GetStateValueDescriptor() { return &values_; } | 1150 StateValueDescriptor* GetStateValueDescriptor() { return &values_; } |
1151 | 1151 |
| 1152 static const int kImpossibleValue = 0xdead; |
| 1153 |
1152 private: | 1154 private: |
1153 FrameStateType type_; | 1155 FrameStateType type_; |
1154 BailoutId bailout_id_; | 1156 BailoutId bailout_id_; |
1155 OutputFrameStateCombine frame_state_combine_; | 1157 OutputFrameStateCombine frame_state_combine_; |
1156 size_t parameters_count_; | 1158 size_t parameters_count_; |
1157 size_t locals_count_; | 1159 size_t locals_count_; |
1158 size_t stack_count_; | 1160 size_t stack_count_; |
1159 StateValueDescriptor values_; | 1161 StateValueDescriptor values_; |
1160 MaybeHandle<SharedFunctionInfo> const shared_info_; | 1162 MaybeHandle<SharedFunctionInfo> const shared_info_; |
1161 FrameStateDescriptor* outer_state_; | 1163 FrameStateDescriptor* outer_state_; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 | 1492 |
1491 | 1493 |
1492 std::ostream& operator<<(std::ostream& os, | 1494 std::ostream& operator<<(std::ostream& os, |
1493 const PrintableInstructionSequence& code); | 1495 const PrintableInstructionSequence& code); |
1494 | 1496 |
1495 } // namespace compiler | 1497 } // namespace compiler |
1496 } // namespace internal | 1498 } // namespace internal |
1497 } // namespace v8 | 1499 } // namespace v8 |
1498 | 1500 |
1499 #endif // V8_COMPILER_INSTRUCTION_H_ | 1501 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |