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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 LifetimePosition allocation_finger_; | 641 LifetimePosition allocation_finger_; |
642 #endif | 642 #endif |
643 | 643 |
644 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 644 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
645 }; | 645 }; |
646 | 646 |
647 | 647 |
648 class LAllocatorPhase : public CompilationPhase { | 648 class LAllocatorPhase : public CompilationPhase { |
649 public: | 649 public: |
650 LAllocatorPhase(const char* name, LAllocator* allocator) | 650 LAllocatorPhase(const char* name, LAllocator* allocator) |
651 : CompilationPhase(name, allocator->isolate(), allocator->zone()), | 651 : CompilationPhase(name, allocator->graph()->info()), |
652 allocator_(allocator) { } | 652 allocator_(allocator) { } |
653 ~LAllocatorPhase(); | 653 ~LAllocatorPhase(); |
654 | 654 |
655 private: | 655 private: |
656 LAllocator* allocator_; | 656 LAllocator* allocator_; |
657 | 657 |
658 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase); | 658 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase); |
659 }; | 659 }; |
660 | 660 |
661 | 661 |
662 } } // namespace v8::internal | 662 } } // namespace v8::internal |
663 | 663 |
664 #endif // V8_LITHIUM_ALLOCATOR_H_ | 664 #endif // V8_LITHIUM_ALLOCATOR_H_ |
OLD | NEW |