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 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 | 2401 |
2402 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2402 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2403 LOperand* context = UseFixed(instr->context(), esi); | 2403 LOperand* context = UseFixed(instr->context(), esi); |
2404 LOperand* key = UseOrConstantAtStart(instr->key()); | 2404 LOperand* key = UseOrConstantAtStart(instr->key()); |
2405 LOperand* object = UseOrConstantAtStart(instr->object()); | 2405 LOperand* object = UseOrConstantAtStart(instr->object()); |
2406 LIn* result = new(zone()) LIn(context, key, object); | 2406 LIn* result = new(zone()) LIn(context, key, object); |
2407 return MarkAsCall(DefineFixed(result, eax), instr); | 2407 return MarkAsCall(DefineFixed(result, eax), instr); |
2408 } | 2408 } |
2409 | 2409 |
2410 | 2410 |
| 2411 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
| 2412 LOperand* context = UseFixed(instr->context(), esi); |
| 2413 LOperand* object = UseFixed(instr->enumerable(), eax); |
| 2414 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object); |
| 2415 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 2416 } |
| 2417 |
| 2418 |
| 2419 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
| 2420 LOperand* map = UseRegister(instr->map()); |
| 2421 return AssignEnvironment(DefineAsRegister( |
| 2422 new(zone()) LForInCacheArray(map))); |
| 2423 } |
| 2424 |
| 2425 |
| 2426 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { |
| 2427 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2428 LOperand* map = UseRegisterAtStart(instr->map()); |
| 2429 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); |
| 2430 } |
| 2431 |
| 2432 |
| 2433 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2434 LOperand* object = UseRegister(instr->object()); |
| 2435 LOperand* index = UseTempRegister(instr->index()); |
| 2436 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2437 } |
| 2438 |
| 2439 |
2411 } } // namespace v8::internal | 2440 } } // namespace v8::internal |
2412 | 2441 |
2413 #endif // V8_TARGET_ARCH_IA32 | 2442 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |