| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_LITHIUM_ALLOCATOR_H_ | 5 #ifndef V8_LITHIUM_ALLOCATOR_H_ |
| 6 #define V8_LITHIUM_ALLOCATOR_H_ | 6 #define V8_LITHIUM_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 BitVector* assigned_registers_; | 542 BitVector* assigned_registers_; |
| 543 BitVector* assigned_double_registers_; | 543 BitVector* assigned_double_registers_; |
| 544 | 544 |
| 545 HGraph* graph_; | 545 HGraph* graph_; |
| 546 | 546 |
| 547 bool has_osr_entry_; | 547 bool has_osr_entry_; |
| 548 | 548 |
| 549 // Indicates success or failure during register allocation. | 549 // Indicates success or failure during register allocation. |
| 550 bool allocation_ok_; | 550 bool allocation_ok_; |
| 551 | 551 |
| 552 #ifdef DEBUG | 552 #if DCHECK_IS_ON |
| 553 LifetimePosition allocation_finger_; | 553 LifetimePosition allocation_finger_; |
| 554 #endif | 554 #endif |
| 555 | 555 |
| 556 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 556 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
| 557 }; | 557 }; |
| 558 | 558 |
| 559 | 559 |
| 560 class LAllocatorPhase : public CompilationPhase { | 560 class LAllocatorPhase : public CompilationPhase { |
| 561 public: | 561 public: |
| 562 LAllocatorPhase(const char* name, LAllocator* allocator); | 562 LAllocatorPhase(const char* name, LAllocator* allocator); |
| 563 ~LAllocatorPhase(); | 563 ~LAllocatorPhase(); |
| 564 | 564 |
| 565 private: | 565 private: |
| 566 LAllocator* allocator_; | 566 LAllocator* allocator_; |
| 567 unsigned allocator_zone_start_allocation_size_; | 567 unsigned allocator_zone_start_allocation_size_; |
| 568 | 568 |
| 569 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase); | 569 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase); |
| 570 }; | 570 }; |
| 571 | 571 |
| 572 | 572 |
| 573 } } // namespace v8::internal | 573 } } // namespace v8::internal |
| 574 | 574 |
| 575 #endif // V8_LITHIUM_ALLOCATOR_H_ | 575 #endif // V8_LITHIUM_ALLOCATOR_H_ |
| OLD | NEW |