| 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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | 1453 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
| 1454 ASSERT(instr->representation().IsDouble()); | 1454 ASSERT(instr->representation().IsDouble()); |
| 1455 ASSERT(instr->global_object()->representation().IsTagged()); | 1455 ASSERT(instr->global_object()->representation().IsTagged()); |
| 1456 LOperand* global_object = UseFixed(instr->global_object(), a0); | 1456 LOperand* global_object = UseFixed(instr->global_object(), a0); |
| 1457 LRandom* result = new(zone()) LRandom(global_object); | 1457 LRandom* result = new(zone()) LRandom(global_object); |
| 1458 return MarkAsCall(DefineFixedDouble(result, f0), instr); | 1458 return MarkAsCall(DefineFixedDouble(result, f0), instr); |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 | 1461 |
| 1462 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1462 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1463 Representation r = instr->GetInputRepresentation(); | |
| 1464 ASSERT(instr->left()->representation().IsTagged()); | 1463 ASSERT(instr->left()->representation().IsTagged()); |
| 1465 ASSERT(instr->right()->representation().IsTagged()); | 1464 ASSERT(instr->right()->representation().IsTagged()); |
| 1466 LOperand* left = UseFixed(instr->left(), a1); | 1465 LOperand* left = UseFixed(instr->left(), a1); |
| 1467 LOperand* right = UseFixed(instr->right(), a0); | 1466 LOperand* right = UseFixed(instr->right(), a0); |
| 1468 LCmpT* result = new(zone()) LCmpT(left, right); | 1467 LCmpT* result = new(zone()) LCmpT(left, right); |
| 1469 return MarkAsCall(DefineFixed(result, v0), instr); | 1468 return MarkAsCall(DefineFixed(result, v0), instr); |
| 1470 } | 1469 } |
| 1471 | 1470 |
| 1472 | 1471 |
| 1473 LInstruction* LChunkBuilder::DoCompareIDAndBranch( | 1472 LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2324 | 2323 |
| 2325 | 2324 |
| 2326 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2325 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2327 LOperand* object = UseRegister(instr->object()); | 2326 LOperand* object = UseRegister(instr->object()); |
| 2328 LOperand* index = UseRegister(instr->index()); | 2327 LOperand* index = UseRegister(instr->index()); |
| 2329 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2328 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2330 } | 2329 } |
| 2331 | 2330 |
| 2332 | 2331 |
| 2333 } } // namespace v8::internal | 2332 } } // namespace v8::internal |
| OLD | NEW |