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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; } | 416 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; } |
417 const Vector<LiveRange*>* fixed_live_ranges() const { | 417 const Vector<LiveRange*>* fixed_live_ranges() const { |
418 return &fixed_live_ranges_; | 418 return &fixed_live_ranges_; |
419 } | 419 } |
420 const Vector<LiveRange*>* fixed_double_live_ranges() const { | 420 const Vector<LiveRange*>* fixed_double_live_ranges() const { |
421 return &fixed_double_live_ranges_; | 421 return &fixed_double_live_ranges_; |
422 } | 422 } |
423 | 423 |
424 LPlatformChunk* chunk() const { return chunk_; } | 424 LPlatformChunk* chunk() const { return chunk_; } |
425 HGraph* graph() const { return graph_; } | 425 HGraph* graph() const { return graph_; } |
| 426 Isolate* isolate() const { return graph_->isolate(); } |
426 Zone* zone() const { return zone_; } | 427 Zone* zone() const { return zone_; } |
427 | 428 |
428 int GetVirtualRegister() { | 429 int GetVirtualRegister() { |
429 if (next_virtual_register_ > LUnallocated::kMaxVirtualRegisters) { | 430 if (next_virtual_register_ > LUnallocated::kMaxVirtualRegisters) { |
430 allocation_ok_ = false; | 431 allocation_ok_ = false; |
431 } | 432 } |
432 return next_virtual_register_++; | 433 return next_virtual_register_++; |
433 } | 434 } |
434 | 435 |
435 bool AllocationOk() { return allocation_ok_; } | 436 bool AllocationOk() { return allocation_ok_; } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // Indicates success or failure during register allocation. | 614 // Indicates success or failure during register allocation. |
614 bool allocation_ok_; | 615 bool allocation_ok_; |
615 | 616 |
616 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 617 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
617 }; | 618 }; |
618 | 619 |
619 | 620 |
620 } } // namespace v8::internal | 621 } } // namespace v8::internal |
621 | 622 |
622 #endif // V8_LITHIUM_ALLOCATOR_H_ | 623 #endif // V8_LITHIUM_ALLOCATOR_H_ |
OLD | NEW |