| 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 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 // it will be loaded multiple times. Unfortunatly crankshaft already | 1258 // it will be loaded multiple times. Unfortunatly crankshaft already |
| 1259 // duplicates constant loads, but we should modify the code below once this | 1259 // duplicates constant loads, but we should modify the code below once this |
| 1260 // issue has been addressed in crankshaft. | 1260 // issue has been addressed in crankshaft. |
| 1261 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); | 1261 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
| 1262 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); | 1262 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
| 1263 return new(zone()) LCmpIDAndBranch(left, right); | 1263 return new(zone()) LCmpIDAndBranch(left, right); |
| 1264 } | 1264 } |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 | 1267 |
| 1268 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
| 1269 ASSERT(instr->representation().IsDouble()); |
| 1270 ASSERT(instr->global_object()->representation().IsTagged()); |
| 1271 LOperand* global_object = UseFixed(instr->global_object(), x0); |
| 1272 LRandom* result = new(zone()) LRandom(global_object); |
| 1273 return MarkAsCall(DefineFixedDouble(result, d7), instr); |
| 1274 } |
| 1275 |
| 1276 |
| 1268 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1277 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1269 ASSERT(instr->left()->representation().IsTagged()); | 1278 ASSERT(instr->left()->representation().IsTagged()); |
| 1270 ASSERT(instr->right()->representation().IsTagged()); | 1279 ASSERT(instr->right()->representation().IsTagged()); |
| 1271 LOperand* left = UseFixed(instr->left(), x1); | 1280 LOperand* left = UseFixed(instr->left(), x1); |
| 1272 LOperand* right = UseFixed(instr->right(), x0); | 1281 LOperand* right = UseFixed(instr->right(), x0); |
| 1273 LCmpT* result = new(zone()) LCmpT(left, right); | 1282 LCmpT* result = new(zone()) LCmpT(left, right); |
| 1274 return MarkAsCall(DefineFixed(result, x0), instr); | 1283 return MarkAsCall(DefineFixed(result, x0), instr); |
| 1275 } | 1284 } |
| 1276 | 1285 |
| 1277 | 1286 |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 } | 1881 } |
| 1873 | 1882 |
| 1874 | 1883 |
| 1875 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1884 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
| 1876 ++argument_count_; | 1885 ++argument_count_; |
| 1877 LOperand* argument = UseRegister(instr->argument()); | 1886 LOperand* argument = UseRegister(instr->argument()); |
| 1878 return new(zone()) LPushArgument(argument); | 1887 return new(zone()) LPushArgument(argument); |
| 1879 } | 1888 } |
| 1880 | 1889 |
| 1881 | 1890 |
| 1882 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
| 1883 UNIMPLEMENTED_INSTRUCTION(); | |
| 1884 } | |
| 1885 | |
| 1886 | |
| 1887 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 1891 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 1888 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, x0), instr); | 1892 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, x0), instr); |
| 1889 } | 1893 } |
| 1890 | 1894 |
| 1891 | 1895 |
| 1892 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1896 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 1893 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1897 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 1894 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count); | 1898 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count); |
| 1895 } | 1899 } |
| 1896 | 1900 |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2461 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2458 LOperand* receiver = UseRegister(instr->receiver()); | 2462 LOperand* receiver = UseRegister(instr->receiver()); |
| 2459 LOperand* function = UseRegisterAtStart(instr->function()); | 2463 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2460 LOperand* temp = TempRegister(); | 2464 LOperand* temp = TempRegister(); |
| 2461 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2465 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2462 return AssignEnvironment(DefineAsRegister(result)); | 2466 return AssignEnvironment(DefineAsRegister(result)); |
| 2463 } | 2467 } |
| 2464 | 2468 |
| 2465 | 2469 |
| 2466 } } // namespace v8::internal | 2470 } } // namespace v8::internal |
| OLD | NEW |