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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 | 2261 |
2262 | 2262 |
2263 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2263 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2264 LOperand* key = UseRegisterAtStart(instr->key()); | 2264 LOperand* key = UseRegisterAtStart(instr->key()); |
2265 LOperand* object = UseRegisterAtStart(instr->object()); | 2265 LOperand* object = UseRegisterAtStart(instr->object()); |
2266 LIn* result = new LIn(key, object); | 2266 LIn* result = new LIn(key, object); |
2267 return MarkAsCall(DefineFixed(result, r0), instr); | 2267 return MarkAsCall(DefineFixed(result, r0), instr); |
2268 } | 2268 } |
2269 | 2269 |
2270 | 2270 |
| 2271 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
| 2272 LOperand* object = UseFixed(instr->enumerable(), r0); |
| 2273 LForInPrepareMap* result = new LForInPrepareMap(object); |
| 2274 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 2275 } |
| 2276 |
| 2277 |
| 2278 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
| 2279 LOperand* map = UseRegister(instr->map()); |
| 2280 return AssignEnvironment(DefineAsRegister( |
| 2281 new LForInCacheArray(map))); |
| 2282 } |
| 2283 |
| 2284 |
| 2285 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { |
| 2286 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2287 LOperand* map = UseRegisterAtStart(instr->map()); |
| 2288 return AssignEnvironment(new LCheckMapValue(value, map)); |
| 2289 } |
| 2290 |
| 2291 |
| 2292 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2293 LOperand* object = UseRegister(instr->object()); |
| 2294 LOperand* index = UseRegister(instr->index()); |
| 2295 return DefineAsRegister(new LLoadFieldByIndex(object, index)); |
| 2296 } |
| 2297 |
| 2298 |
2271 } } // namespace v8::internal | 2299 } } // namespace v8::internal |
OLD | NEW |