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 | |
1887 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1872 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1888 LOperand* context = info()->IsStub() | 1873 LOperand* context = info()->IsStub() |
1889 ? UseFixed(instr->context(), cp) | 1874 ? UseFixed(instr->context(), cp) |
1890 : NULL; | 1875 : NULL; |
1891 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1876 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1892 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, | 1877 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, |
1893 parameter_count); | 1878 parameter_count); |
1894 } | 1879 } |
1895 | 1880 |
1896 | 1881 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 | 2439 |
2455 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2440 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2456 LOperand* receiver = UseRegister(instr->receiver()); | 2441 LOperand* receiver = UseRegister(instr->receiver()); |
2457 LOperand* function = UseRegister(instr->function()); | 2442 LOperand* function = UseRegister(instr->function()); |
2458 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2443 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2459 return AssignEnvironment(DefineAsRegister(result)); | 2444 return AssignEnvironment(DefineAsRegister(result)); |
2460 } | 2445 } |
2461 | 2446 |
2462 | 2447 |
2463 } } // namespace v8::internal | 2448 } } // namespace v8::internal |
OLD | NEW |