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 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 | 2193 |
2194 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { | 2194 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
2195 LOperand* object = UseFixed(instr->enumerable(), a0); | 2195 LOperand* object = UseFixed(instr->enumerable(), a0); |
2196 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); | 2196 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); |
2197 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); | 2197 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); |
2198 } | 2198 } |
2199 | 2199 |
2200 | 2200 |
2201 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { | 2201 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
2202 LOperand* map = UseRegister(instr->map()); | 2202 LOperand* map = UseRegister(instr->map()); |
| 2203 LOperand* scratch = TempRegister(); |
2203 return AssignEnvironment(DefineAsRegister( | 2204 return AssignEnvironment(DefineAsRegister( |
2204 new(zone()) LForInCacheArray(map))); | 2205 new(zone()) LForInCacheArray(map, scratch))); |
2205 } | 2206 } |
2206 | 2207 |
2207 | 2208 |
2208 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { | 2209 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { |
2209 LOperand* value = UseRegisterAtStart(instr->value()); | 2210 LOperand* value = UseRegisterAtStart(instr->value()); |
2210 LOperand* map = UseRegisterAtStart(instr->map()); | 2211 LOperand* map = UseRegisterAtStart(instr->map()); |
2211 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); | 2212 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); |
2212 } | 2213 } |
2213 | 2214 |
2214 | 2215 |
2215 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2216 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2216 LOperand* object = UseRegister(instr->object()); | 2217 LOperand* object = UseRegister(instr->object()); |
2217 LOperand* index = UseRegister(instr->index()); | 2218 LOperand* index = UseRegister(instr->index()); |
2218 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2219 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2219 } | 2220 } |
2220 | 2221 |
2221 | 2222 |
2222 } } // namespace v8::internal | 2223 } } // namespace v8::internal |
OLD | NEW |