| 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 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 LInstruction* goto_instr = CheckElideControlInstruction(instr); | 1307 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 1308 if (goto_instr != NULL) return goto_instr; | 1308 if (goto_instr != NULL) return goto_instr; |
| 1309 | 1309 |
| 1310 LOperand* left = UseRegisterAtStart(instr->left()); | 1310 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1311 LOperand* right = UseRegisterAtStart(instr->right()); | 1311 LOperand* right = UseRegisterAtStart(instr->right()); |
| 1312 return new(zone()) LCmpObjectEqAndBranch(left, right); | 1312 return new(zone()) LCmpObjectEqAndBranch(left, right); |
| 1313 } | 1313 } |
| 1314 | 1314 |
| 1315 | 1315 |
| 1316 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { | 1316 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
| 1317 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 1318 if (goto_instr != NULL) return goto_instr; |
| 1319 |
| 1317 ASSERT(instr->value()->representation().IsTagged()); | 1320 ASSERT(instr->value()->representation().IsTagged()); |
| 1318 LOperand* value = UseRegisterAtStart(instr->value()); | 1321 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1319 LOperand* temp = TempRegister(); | 1322 LOperand* temp = TempRegister(); |
| 1320 return new(zone()) LCmpMapAndBranch(value, temp); | 1323 return new(zone()) LCmpMapAndBranch(value, temp); |
| 1321 } | 1324 } |
| 1322 | 1325 |
| 1323 | 1326 |
| 1324 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1327 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
| 1325 Representation r = instr->representation(); | 1328 Representation r = instr->representation(); |
| 1326 if (r.IsSmi()) { | 1329 if (r.IsSmi()) { |
| (...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 | 2444 |
| 2442 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2445 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2443 LOperand* receiver = UseRegister(instr->receiver()); | 2446 LOperand* receiver = UseRegister(instr->receiver()); |
| 2444 LOperand* function = UseRegister(instr->function()); | 2447 LOperand* function = UseRegister(instr->function()); |
| 2445 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2448 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2446 return AssignEnvironment(DefineAsRegister(result)); | 2449 return AssignEnvironment(DefineAsRegister(result)); |
| 2447 } | 2450 } |
| 2448 | 2451 |
| 2449 | 2452 |
| 2450 } } // namespace v8::internal | 2453 } } // namespace v8::internal |
| OLD | NEW |