| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 enum InnerPosition { | 327 enum InnerPosition { |
| 328 BEFORE, | 328 BEFORE, |
| 329 START, | 329 START, |
| 330 END, | 330 END, |
| 331 AFTER, | 331 AFTER, |
| 332 FIRST_INNER_POSITION = BEFORE, | 332 FIRST_INNER_POSITION = BEFORE, |
| 333 LAST_INNER_POSITION = AFTER | 333 LAST_INNER_POSITION = AFTER |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 LParallelMove* GetOrCreateParallelMove(InnerPosition pos) { | 336 LParallelMove* GetOrCreateParallelMove(InnerPosition pos) { |
| 337 if (parallel_moves_[pos] == NULL) parallel_moves_[pos] = new LParallelMove; | 337 if (parallel_moves_[pos] == NULL) { |
| 338 parallel_moves_[pos] = new LParallelMove(block_->zone()); |
| 339 } |
| 338 return parallel_moves_[pos]; | 340 return parallel_moves_[pos]; |
| 339 } | 341 } |
| 340 | 342 |
| 341 LParallelMove* GetParallelMove(InnerPosition pos) { | 343 LParallelMove* GetParallelMove(InnerPosition pos) { |
| 342 return parallel_moves_[pos]; | 344 return parallel_moves_[pos]; |
| 343 } | 345 } |
| 344 | 346 |
| 345 private: | 347 private: |
| 346 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1]; | 348 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1]; |
| 347 HBasicBlock* block_; | 349 HBasicBlock* block_; |
| (...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2157 | 2159 |
| 2158 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2160 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2159 }; | 2161 }; |
| 2160 | 2162 |
| 2161 #undef DECLARE_HYDROGEN_ACCESSOR | 2163 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2162 #undef DECLARE_CONCRETE_INSTRUCTION | 2164 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2163 | 2165 |
| 2164 } } // namespace v8::internal | 2166 } } // namespace v8::internal |
| 2165 | 2167 |
| 2166 #endif // V8_ARM_LITHIUM_ARM_H_ | 2168 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |