| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 va_list arguments; | 574 va_list arguments; |
| 575 va_start(arguments, format); | 575 va_start(arguments, format); |
| 576 OS::VPrint(format, arguments); | 576 OS::VPrint(format, arguments); |
| 577 va_end(arguments); | 577 va_end(arguments); |
| 578 PrintF("\n"); | 578 PrintF("\n"); |
| 579 } | 579 } |
| 580 status_ = ABORTED; | 580 status_ = ABORTED; |
| 581 } | 581 } |
| 582 | 582 |
| 583 | 583 |
| 584 LRegister* LChunkBuilder::ToOperand(Register reg) { | |
| 585 return LRegister::Create(Register::ToAllocationIndex(reg)); | |
| 586 } | |
| 587 | |
| 588 | |
| 589 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { | 584 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |
| 590 return new LUnallocated(LUnallocated::FIXED_REGISTER, | 585 return new LUnallocated(LUnallocated::FIXED_REGISTER, |
| 591 Register::ToAllocationIndex(reg)); | 586 Register::ToAllocationIndex(reg)); |
| 592 } | 587 } |
| 593 | 588 |
| 594 | 589 |
| 595 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { | 590 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { |
| 596 return new LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, | 591 return new LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, |
| 597 DoubleRegister::ToAllocationIndex(reg)); | 592 DoubleRegister::ToAllocationIndex(reg)); |
| 598 } | 593 } |
| (...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2273 | 2268 |
| 2274 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2269 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2275 LOperand* key = UseRegisterAtStart(instr->key()); | 2270 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2276 LOperand* object = UseRegisterAtStart(instr->object()); | 2271 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2277 LIn* result = new LIn(key, object); | 2272 LIn* result = new LIn(key, object); |
| 2278 return MarkAsCall(DefineFixed(result, v0), instr); | 2273 return MarkAsCall(DefineFixed(result, v0), instr); |
| 2279 } | 2274 } |
| 2280 | 2275 |
| 2281 | 2276 |
| 2282 } } // namespace v8::internal | 2277 } } // namespace v8::internal |
| OLD | NEW |