| 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 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2577 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2578 int index = static_cast<int>(instr->index()); | 2578 int index = static_cast<int>(instr->index()); |
| 2579 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 2579 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); |
| 2580 return DefineFixed(result, reg); | 2580 return DefineFixed(result, reg); |
| 2581 } | 2581 } |
| 2582 } | 2582 } |
| 2583 | 2583 |
| 2584 | 2584 |
| 2585 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2585 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2586 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. | 2586 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. |
| 2587 if (spill_index > LUnallocated::kMaxFixedIndex) { | 2587 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
| 2588 Abort("Too many spill slots needed for OSR"); | 2588 Abort("Too many spill slots needed for OSR"); |
| 2589 spill_index = 0; | 2589 spill_index = 0; |
| 2590 } | 2590 } |
| 2591 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); | 2591 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
| 2592 } | 2592 } |
| 2593 | 2593 |
| 2594 | 2594 |
| 2595 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 2595 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { |
| 2596 LOperand* context = UseFixed(instr->context(), esi); | 2596 LOperand* context = UseFixed(instr->context(), esi); |
| 2597 argument_count_ -= instr->argument_count(); | 2597 argument_count_ -= instr->argument_count(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2771 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2771 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2772 LOperand* object = UseRegister(instr->object()); | 2772 LOperand* object = UseRegister(instr->object()); |
| 2773 LOperand* index = UseTempRegister(instr->index()); | 2773 LOperand* index = UseTempRegister(instr->index()); |
| 2774 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2774 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2775 } | 2775 } |
| 2776 | 2776 |
| 2777 | 2777 |
| 2778 } } // namespace v8::internal | 2778 } } // namespace v8::internal |
| 2779 | 2779 |
| 2780 #endif // V8_TARGET_ARCH_IA32 | 2780 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |