OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 // Shorten the most recently added interval by setting a new start. | 370 // Shorten the most recently added interval by setting a new start. |
371 void ShortenTo(LifetimePosition start); | 371 void ShortenTo(LifetimePosition start); |
372 | 372 |
373 #ifdef DEBUG | 373 #ifdef DEBUG |
374 // True if target overlaps an existing interval. | 374 // True if target overlaps an existing interval. |
375 bool HasOverlap(UseInterval* target) const; | 375 bool HasOverlap(UseInterval* target) const; |
376 void Verify() const; | 376 void Verify() const; |
377 #endif | 377 #endif |
378 | 378 |
| 379 void ResetLastProcessedUse() { |
| 380 last_processed_use_ = NULL; |
| 381 } |
| 382 |
379 private: | 383 private: |
380 void ConvertOperands(Zone* zone); | 384 void ConvertOperands(Zone* zone); |
381 UseInterval* FirstSearchIntervalForPosition(LifetimePosition position) const; | 385 UseInterval* FirstSearchIntervalForPosition(LifetimePosition position) const; |
382 void AdvanceLastProcessedMarker(UseInterval* to_start_of, | 386 void AdvanceLastProcessedMarker(UseInterval* to_start_of, |
383 LifetimePosition but_not_past) const; | 387 LifetimePosition but_not_past) const; |
384 | 388 |
385 int id_; | 389 int id_; |
386 bool spilled_; | 390 bool spilled_; |
387 bool is_double_; | 391 bool is_double_; |
388 int assigned_register_; | 392 int assigned_register_; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 // Indicates success or failure during register allocation. | 636 // Indicates success or failure during register allocation. |
633 bool allocation_ok_; | 637 bool allocation_ok_; |
634 | 638 |
635 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 639 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
636 }; | 640 }; |
637 | 641 |
638 | 642 |
639 } } // namespace v8::internal | 643 } } // namespace v8::internal |
640 | 644 |
641 #endif // V8_LITHIUM_ALLOCATOR_H_ | 645 #endif // V8_LITHIUM_ALLOCATOR_H_ |
OLD | NEW |