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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 va_list arguments; | 567 va_list arguments; |
568 va_start(arguments, format); | 568 va_start(arguments, format); |
569 OS::VPrint(format, arguments); | 569 OS::VPrint(format, arguments); |
570 va_end(arguments); | 570 va_end(arguments); |
571 PrintF("\n"); | 571 PrintF("\n"); |
572 } | 572 } |
573 status_ = ABORTED; | 573 status_ = ABORTED; |
574 } | 574 } |
575 | 575 |
576 | 576 |
577 LRegister* LChunkBuilder::ToOperand(Register reg) { | |
578 return LRegister::Create(Register::ToAllocationIndex(reg)); | |
579 } | |
580 | |
581 | |
582 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { | 577 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |
583 return new LUnallocated(LUnallocated::FIXED_REGISTER, | 578 return new LUnallocated(LUnallocated::FIXED_REGISTER, |
584 Register::ToAllocationIndex(reg)); | 579 Register::ToAllocationIndex(reg)); |
585 } | 580 } |
586 | 581 |
587 | 582 |
588 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { | 583 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { |
589 return new LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, | 584 return new LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, |
590 XMMRegister::ToAllocationIndex(reg)); | 585 XMMRegister::ToAllocationIndex(reg)); |
591 } | 586 } |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 LOperand* key = UseOrConstantAtStart(instr->key()); | 2266 LOperand* key = UseOrConstantAtStart(instr->key()); |
2272 LOperand* object = UseOrConstantAtStart(instr->object()); | 2267 LOperand* object = UseOrConstantAtStart(instr->object()); |
2273 LIn* result = new LIn(key, object); | 2268 LIn* result = new LIn(key, object); |
2274 return MarkAsCall(DefineFixed(result, rax), instr); | 2269 return MarkAsCall(DefineFixed(result, rax), instr); |
2275 } | 2270 } |
2276 | 2271 |
2277 | 2272 |
2278 } } // namespace v8::internal | 2273 } } // namespace v8::internal |
2279 | 2274 |
2280 #endif // V8_TARGET_ARCH_X64 | 2275 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |