| 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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 friend class StateValueList; | 1190 friend class StateValueList; |
| 1191 | 1191 |
| 1192 iterator(ZoneVector<StateValueDescriptor>::iterator it, | 1192 iterator(ZoneVector<StateValueDescriptor>::iterator it, |
| 1193 ZoneVector<StateValueList*>::iterator nested) | 1193 ZoneVector<StateValueList*>::iterator nested) |
| 1194 : field_iterator(it), nested_iterator(nested) {} | 1194 : field_iterator(it), nested_iterator(nested) {} |
| 1195 | 1195 |
| 1196 ZoneVector<StateValueDescriptor>::iterator field_iterator; | 1196 ZoneVector<StateValueDescriptor>::iterator field_iterator; |
| 1197 ZoneVector<StateValueList*>::iterator nested_iterator; | 1197 ZoneVector<StateValueList*>::iterator nested_iterator; |
| 1198 }; | 1198 }; |
| 1199 | 1199 |
| 1200 void ReserveSize(size_t size) { fields_.reserve(size); } |
| 1201 |
| 1200 StateValueList* PushRecursiveField(Zone* zone, size_t id) { | 1202 StateValueList* PushRecursiveField(Zone* zone, size_t id) { |
| 1201 fields_.push_back(StateValueDescriptor::Recursive(id)); | 1203 fields_.push_back(StateValueDescriptor::Recursive(id)); |
| 1202 StateValueList* nested = | 1204 StateValueList* nested = |
| 1203 new (zone->New(sizeof(StateValueList))) StateValueList(zone); | 1205 new (zone->New(sizeof(StateValueList))) StateValueList(zone); |
| 1204 nested_.push_back(nested); | 1206 nested_.push_back(nested); |
| 1205 return nested; | 1207 return nested; |
| 1206 } | 1208 } |
| 1207 void PushDuplicate(size_t id) { | 1209 void PushDuplicate(size_t id) { |
| 1208 fields_.push_back(StateValueDescriptor::Duplicate(id)); | 1210 fields_.push_back(StateValueDescriptor::Duplicate(id)); |
| 1209 } | 1211 } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 }; | 1604 }; |
| 1603 | 1605 |
| 1604 V8_EXPORT_PRIVATE std::ostream& operator<<( | 1606 V8_EXPORT_PRIVATE std::ostream& operator<<( |
| 1605 std::ostream& os, const PrintableInstructionSequence& code); | 1607 std::ostream& os, const PrintableInstructionSequence& code); |
| 1606 | 1608 |
| 1607 } // namespace compiler | 1609 } // namespace compiler |
| 1608 } // namespace internal | 1610 } // namespace internal |
| 1609 } // namespace v8 | 1611 } // namespace v8 |
| 1610 | 1612 |
| 1611 #endif // V8_COMPILER_INSTRUCTION_H_ | 1613 #endif // V8_COMPILER_INSTRUCTION_H_ |
| OLD | NEW |