| 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1099       ASSERT(to.IsInteger32()); | 1099       ASSERT(to.IsInteger32()); | 
| 1100       LInstruction* res = NULL; | 1100       LInstruction* res = NULL; | 
| 1101 | 1101 | 
| 1102       if (instr->value()->type().IsSmi() || | 1102       if (instr->value()->type().IsSmi() || | 
| 1103           instr->value()->representation().IsSmi()) { | 1103           instr->value()->representation().IsSmi()) { | 
| 1104         LOperand* value = UseRegisterAtStart(instr->value()); | 1104         LOperand* value = UseRegisterAtStart(instr->value()); | 
| 1105         res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); | 1105         res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); | 
| 1106       } else { | 1106       } else { | 
| 1107         LOperand* value = UseRegister(instr->value()); | 1107         LOperand* value = UseRegister(instr->value()); | 
| 1108         LOperand* temp1 = TempRegister(); | 1108         LOperand* temp1 = TempRegister(); | 
| 1109         LOperand* temp2 = | 1109         LOperand* temp2 = instr->CanTruncateToInt32() ? NULL : FixedTemp(d24); | 
| 1110             instr->CanTruncateToInt32() ? TempRegister() : FixedTemp(d24); |  | 
| 1111         res = DefineAsRegister(new(zone()) LTaggedToI(value, temp1, temp2)); | 1110         res = DefineAsRegister(new(zone()) LTaggedToI(value, temp1, temp2)); | 
| 1112         res = AssignEnvironment(res); | 1111         res = AssignEnvironment(res); | 
| 1113       } | 1112       } | 
| 1114 | 1113 | 
| 1115       return res; | 1114       return res; | 
| 1116     } | 1115     } | 
| 1117   } else if (from.IsDouble()) { | 1116   } else if (from.IsDouble()) { | 
| 1118     if (to.IsTagged()) { | 1117     if (to.IsTagged()) { | 
| 1119       info()->MarkAsDeferredCalling(); | 1118       info()->MarkAsDeferredCalling(); | 
| 1120       LOperand* value = UseRegister(instr->value()); | 1119       LOperand* value = UseRegister(instr->value()); | 
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2568 | 2567 | 
| 2569 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 
| 2570   LOperand* receiver = UseRegister(instr->receiver()); | 2569   LOperand* receiver = UseRegister(instr->receiver()); | 
| 2571   LOperand* function = UseRegister(instr->function()); | 2570   LOperand* function = UseRegister(instr->function()); | 
| 2572   LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2571   LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 
| 2573   return AssignEnvironment(DefineAsRegister(result)); | 2572   return AssignEnvironment(DefineAsRegister(result)); | 
| 2574 } | 2573 } | 
| 2575 | 2574 | 
| 2576 | 2575 | 
| 2577 } }  // namespace v8::internal | 2576 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|