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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | 1435 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
1436 ASSERT(instr->representation().IsDouble()); | 1436 ASSERT(instr->representation().IsDouble()); |
1437 ASSERT(instr->global_object()->representation().IsTagged()); | 1437 ASSERT(instr->global_object()->representation().IsTagged()); |
1438 LOperand* global_object = UseFixed(instr->global_object(), a0); | 1438 LOperand* global_object = UseFixed(instr->global_object(), a0); |
1439 LRandom* result = new(zone()) LRandom(global_object); | 1439 LRandom* result = new(zone()) LRandom(global_object); |
1440 return MarkAsCall(DefineFixedDouble(result, f0), instr); | 1440 return MarkAsCall(DefineFixedDouble(result, f0), instr); |
1441 } | 1441 } |
1442 | 1442 |
1443 | 1443 |
1444 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1444 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1445 Representation r = instr->GetInputRepresentation(); | |
1446 ASSERT(instr->left()->representation().IsTagged()); | 1445 ASSERT(instr->left()->representation().IsTagged()); |
1447 ASSERT(instr->right()->representation().IsTagged()); | 1446 ASSERT(instr->right()->representation().IsTagged()); |
1448 LOperand* left = UseFixed(instr->left(), a1); | 1447 LOperand* left = UseFixed(instr->left(), a1); |
1449 LOperand* right = UseFixed(instr->right(), a0); | 1448 LOperand* right = UseFixed(instr->right(), a0); |
1450 LCmpT* result = new(zone()) LCmpT(left, right); | 1449 LCmpT* result = new(zone()) LCmpT(left, right); |
1451 return MarkAsCall(DefineFixed(result, v0), instr); | 1450 return MarkAsCall(DefineFixed(result, v0), instr); |
1452 } | 1451 } |
1453 | 1452 |
1454 | 1453 |
1455 LInstruction* LChunkBuilder::DoCompareIDAndBranch( | 1454 LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 | 2319 |
2321 | 2320 |
2322 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2321 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2323 LOperand* object = UseRegister(instr->object()); | 2322 LOperand* object = UseRegister(instr->object()); |
2324 LOperand* index = UseRegister(instr->index()); | 2323 LOperand* index = UseRegister(instr->index()); |
2325 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2324 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2326 } | 2325 } |
2327 | 2326 |
2328 | 2327 |
2329 } } // namespace v8::internal | 2328 } } // namespace v8::internal |
OLD | NEW |