| 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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2116 } | 2116 } |
| 2117 } | 2117 } |
| 2118 | 2118 |
| 2119 | 2119 |
| 2120 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2120 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 2121 LOperand* temp = TempRegister(); | 2121 LOperand* temp = TempRegister(); |
| 2122 LOperand* context; | 2122 LOperand* context; |
| 2123 LOperand* value; | 2123 LOperand* value; |
| 2124 if (instr->NeedsWriteBarrier()) { | 2124 if (instr->NeedsWriteBarrier()) { |
| 2125 // TODO(all): Replace these constraints when RecordWriteStub has been | 2125 // TODO(all): Replace these constraints when RecordWriteStub has been |
| 2126 // rewritten. See GOOGJSE-586. | 2126 // rewritten. |
| 2127 context = UseRegisterAndClobber(instr->context()); | 2127 context = UseRegisterAndClobber(instr->context()); |
| 2128 value = UseRegisterAndClobber(instr->value()); | 2128 value = UseRegisterAndClobber(instr->value()); |
| 2129 } else { | 2129 } else { |
| 2130 context = UseRegister(instr->context()); | 2130 context = UseRegister(instr->context()); |
| 2131 value = UseRegister(instr->value()); | 2131 value = UseRegister(instr->value()); |
| 2132 } | 2132 } |
| 2133 LInstruction* result = new(zone()) LStoreContextSlot(context, value, temp); | 2133 LInstruction* result = new(zone()) LStoreContextSlot(context, value, temp); |
| 2134 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2134 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 2135 } | 2135 } |
| 2136 | 2136 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2560 LOperand* receiver = UseRegister(instr->receiver()); | 2560 LOperand* receiver = UseRegister(instr->receiver()); |
| 2561 LOperand* function = UseRegisterAtStart(instr->function()); | 2561 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2562 LOperand* temp = TempRegister(); | 2562 LOperand* temp = TempRegister(); |
| 2563 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2563 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2564 return AssignEnvironment(DefineAsRegister(result)); | 2564 return AssignEnvironment(DefineAsRegister(result)); |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 | 2567 |
| 2568 } } // namespace v8::internal | 2568 } } // namespace v8::internal |
| OLD | NEW |