OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 } | 1862 } |
1863 | 1863 |
1864 | 1864 |
1865 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 1865 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
1866 LOperand* context = UseFixed(instr->context(), cp); | 1866 LOperand* context = UseFixed(instr->context(), cp); |
1867 return MarkAsCall( | 1867 return MarkAsCall( |
1868 DefineFixed(new(zone()) LRegExpLiteral(context), x0), instr); | 1868 DefineFixed(new(zone()) LRegExpLiteral(context), x0), instr); |
1869 } | 1869 } |
1870 | 1870 |
1871 | 1871 |
| 1872 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1873 HValue* value = instr->value(); |
| 1874 ASSERT(value->representation().IsDouble()); |
| 1875 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 1876 } |
| 1877 |
| 1878 |
| 1879 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 1880 LOperand* lo = UseRegister(instr->lo()); |
| 1881 LOperand* hi = UseRegister(instr->hi()); |
| 1882 LOperand* temp = TempRegister(); |
| 1883 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo, temp)); |
| 1884 } |
| 1885 |
| 1886 |
1872 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1887 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1873 LOperand* context = info()->IsStub() | 1888 LOperand* context = info()->IsStub() |
1874 ? UseFixed(instr->context(), cp) | 1889 ? UseFixed(instr->context(), cp) |
1875 : NULL; | 1890 : NULL; |
1876 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1891 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1877 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, | 1892 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, |
1878 parameter_count); | 1893 parameter_count); |
1879 } | 1894 } |
1880 | 1895 |
1881 | 1896 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2439 | 2454 |
2440 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2455 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2441 LOperand* receiver = UseRegister(instr->receiver()); | 2456 LOperand* receiver = UseRegister(instr->receiver()); |
2442 LOperand* function = UseRegister(instr->function()); | 2457 LOperand* function = UseRegister(instr->function()); |
2443 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2458 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2444 return AssignEnvironment(DefineAsRegister(result)); | 2459 return AssignEnvironment(DefineAsRegister(result)); |
2445 } | 2460 } |
2446 | 2461 |
2447 | 2462 |
2448 } } // namespace v8::internal | 2463 } } // namespace v8::internal |
OLD | NEW |