| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 } | 423 } |
| 424 | 424 |
| 425 BitVector* bits_; | 425 BitVector* bits_; |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 | 428 |
| 429 class LAllocator BASE_EMBEDDED { | 429 class LAllocator BASE_EMBEDDED { |
| 430 public: | 430 public: |
| 431 LAllocator(int first_virtual_register, HGraph* graph); | 431 LAllocator(int first_virtual_register, HGraph* graph); |
| 432 | 432 |
| 433 static void Setup(); | |
| 434 static void TraceAlloc(const char* msg, ...); | 433 static void TraceAlloc(const char* msg, ...); |
| 435 | 434 |
| 436 // Lithium translation support. | 435 // Lithium translation support. |
| 437 // Record a use of an input operand in the current instruction. | 436 // Record a use of an input operand in the current instruction. |
| 438 void RecordUse(HValue* value, LUnallocated* operand); | 437 void RecordUse(HValue* value, LUnallocated* operand); |
| 439 // Record the definition of the output operand. | 438 // Record the definition of the output operand. |
| 440 void RecordDefinition(HInstruction* instr, LUnallocated* operand); | 439 void RecordDefinition(HInstruction* instr, LUnallocated* operand); |
| 441 // Record a temporary operand. | 440 // Record a temporary operand. |
| 442 void RecordTemporary(LUnallocated* operand); | 441 void RecordTemporary(LUnallocated* operand); |
| 443 | 442 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 | 621 |
| 623 bool has_osr_entry_; | 622 bool has_osr_entry_; |
| 624 | 623 |
| 625 DISALLOW_COPY_AND_ASSIGN(LAllocator); | 624 DISALLOW_COPY_AND_ASSIGN(LAllocator); |
| 626 }; | 625 }; |
| 627 | 626 |
| 628 | 627 |
| 629 } } // namespace v8::internal | 628 } } // namespace v8::internal |
| 630 | 629 |
| 631 #endif // V8_LITHIUM_ALLOCATOR_H_ | 630 #endif // V8_LITHIUM_ALLOCATOR_H_ |
| OLD | NEW |