| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 private: | 329 private: |
| 330 SetOncePointer<LEnvironment> environment_; | 330 SetOncePointer<LEnvironment> environment_; |
| 331 SetOncePointer<LPointerMap> pointer_map_; | 331 SetOncePointer<LPointerMap> pointer_map_; |
| 332 SetOncePointer<LOperand> result_; | 332 SetOncePointer<LOperand> result_; |
| 333 HValue* hydrogen_value_; | 333 HValue* hydrogen_value_; |
| 334 SetOncePointer<LEnvironment> deoptimization_environment_; | 334 SetOncePointer<LEnvironment> deoptimization_environment_; |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 | 337 |
| 338 class LParallelMove : public ZoneObject { | |
| 339 public: | |
| 340 LParallelMove() : move_operands_(4) { } | |
| 341 | |
| 342 void AddMove(LOperand* from, LOperand* to) { | |
| 343 move_operands_.Add(LMoveOperands(from, to)); | |
| 344 } | |
| 345 | |
| 346 bool IsRedundant() const; | |
| 347 | |
| 348 const ZoneList<LMoveOperands>* move_operands() const { | |
| 349 return &move_operands_; | |
| 350 } | |
| 351 | |
| 352 void PrintDataTo(StringStream* stream) const; | |
| 353 | |
| 354 private: | |
| 355 ZoneList<LMoveOperands> move_operands_; | |
| 356 }; | |
| 357 | |
| 358 | |
| 359 class LGap: public LInstruction { | 338 class LGap: public LInstruction { |
| 360 public: | 339 public: |
| 361 explicit LGap(HBasicBlock* block) | 340 explicit LGap(HBasicBlock* block) |
| 362 : block_(block) { | 341 : block_(block) { |
| 363 parallel_moves_[BEFORE] = NULL; | 342 parallel_moves_[BEFORE] = NULL; |
| 364 parallel_moves_[START] = NULL; | 343 parallel_moves_[START] = NULL; |
| 365 parallel_moves_[END] = NULL; | 344 parallel_moves_[END] = NULL; |
| 366 parallel_moves_[AFTER] = NULL; | 345 parallel_moves_[AFTER] = NULL; |
| 367 } | 346 } |
| 368 | 347 |
| (...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2115 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2137 }; | 2116 }; |
| 2138 | 2117 |
| 2139 #undef DECLARE_HYDROGEN_ACCESSOR | 2118 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2140 #undef DECLARE_INSTRUCTION | 2119 #undef DECLARE_INSTRUCTION |
| 2141 #undef DECLARE_CONCRETE_INSTRUCTION | 2120 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2142 | 2121 |
| 2143 } } // namespace v8::internal | 2122 } } // namespace v8::internal |
| 2144 | 2123 |
| 2145 #endif // V8_IA32_LITHIUM_IA32_H_ | 2124 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |