| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 LAllocator(int first_virtual_register, HGraph* graph); | 438 LAllocator(int first_virtual_register, HGraph* graph); |
| 439 | 439 |
| 440 static void TraceAlloc(const char* msg, ...); | 440 static void TraceAlloc(const char* msg, ...); |
| 441 | 441 |
| 442 // Checks whether the value of a given virtual register is tagged. | 442 // Checks whether the value of a given virtual register is tagged. |
| 443 bool HasTaggedValue(int virtual_register) const; | 443 bool HasTaggedValue(int virtual_register) const; |
| 444 | 444 |
| 445 // Returns the register kind required by the given virtual register. | 445 // Returns the register kind required by the given virtual register. |
| 446 RegisterKind RequiredRegisterKind(int virtual_register) const; | 446 RegisterKind RequiredRegisterKind(int virtual_register) const; |
| 447 | 447 |
| 448 bool Allocate(LChunk* chunk); | 448 bool Allocate(LChunkBase* chunk); |
| 449 | 449 |
| 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_; } |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 // Indicates success or failure during register allocation. | 632 // Indicates success or failure during register allocation. |
| 633 bool allocation_ok_; | 633 bool allocation_ok_; |
| 634 | 634 |
| 635 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 635 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
| 636 }; | 636 }; |
| 637 | 637 |
| 638 | 638 |
| 639 } } // namespace v8::internal | 639 } } // namespace v8::internal |
| 640 | 640 |
| 641 #endif // V8_LITHIUM_ALLOCATOR_H_ | 641 #endif // V8_LITHIUM_ALLOCATOR_H_ |
| OLD | NEW |