| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; } | 450 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; } |
| 451 const Vector<LiveRange*>* fixed_live_ranges() const { | 451 const Vector<LiveRange*>* fixed_live_ranges() const { |
| 452 return &fixed_live_ranges_; | 452 return &fixed_live_ranges_; |
| 453 } | 453 } |
| 454 const Vector<LiveRange*>* fixed_double_live_ranges() const { | 454 const Vector<LiveRange*>* fixed_double_live_ranges() const { |
| 455 return &fixed_double_live_ranges_; | 455 return &fixed_double_live_ranges_; |
| 456 } | 456 } |
| 457 | 457 |
| 458 LChunk* chunk() const { return chunk_; } | 458 LChunk* chunk() const { return chunk_; } |
| 459 HGraph* graph() const { return graph_; } | 459 HGraph* graph() const { return graph_; } |
| 460 Zone* zone() const { return zone_; } |
| 460 | 461 |
| 461 int GetVirtualRegister() { | 462 int GetVirtualRegister() { |
| 462 if (next_virtual_register_ > LUnallocated::kMaxVirtualRegisters) { | 463 if (next_virtual_register_ > LUnallocated::kMaxVirtualRegisters) { |
| 463 allocation_ok_ = false; | 464 allocation_ok_ = false; |
| 464 } | 465 } |
| 465 return next_virtual_register_++; | 466 return next_virtual_register_++; |
| 466 } | 467 } |
| 467 | 468 |
| 468 bool AllocationOk() { return allocation_ok_; } | 469 bool AllocationOk() { return allocation_ok_; } |
| 469 | 470 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // Indicates success or failure during register allocation. | 632 // Indicates success or failure during register allocation. |
| 632 bool allocation_ok_; | 633 bool allocation_ok_; |
| 633 | 634 |
| 634 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 635 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
| 635 }; | 636 }; |
| 636 | 637 |
| 637 | 638 |
| 638 } } // namespace v8::internal | 639 } } // namespace v8::internal |
| 639 | 640 |
| 640 #endif // V8_LITHIUM_ALLOCATOR_H_ | 641 #endif // V8_LITHIUM_ALLOCATOR_H_ |
| OLD | NEW |