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