| 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 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2552 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2552 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2553 LParameter* result = new(zone()) LParameter; | 2553 LParameter* result = new(zone()) LParameter; |
| 2554 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2554 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2555 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2555 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2556 return DefineAsSpilled(result, spill_index); | 2556 return DefineAsSpilled(result, spill_index); |
| 2557 } else { | 2557 } else { |
| 2558 ASSERT(info()->IsStub()); | 2558 ASSERT(info()->IsStub()); |
| 2559 CodeStubInterfaceDescriptor* descriptor = | 2559 CodeStubInterfaceDescriptor* descriptor = |
| 2560 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2560 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2561 int index = static_cast<int>(instr->index()); | 2561 int index = static_cast<int>(instr->index()); |
| 2562 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 2562 Register reg = descriptor->GetParameterRegister(index); |
| 2563 return DefineFixed(result, reg); | 2563 return DefineFixed(result, reg); |
| 2564 } | 2564 } |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 | 2567 |
| 2568 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2568 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2569 // Use an index that corresponds to the location in the unoptimized frame, | 2569 // Use an index that corresponds to the location in the unoptimized frame, |
| 2570 // which the optimized frame will subsume. | 2570 // which the optimized frame will subsume. |
| 2571 int env_index = instr->index(); | 2571 int env_index = instr->index(); |
| 2572 int spill_index = 0; | 2572 int spill_index = 0; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2753 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2753 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2754 LOperand* object = UseRegister(instr->object()); | 2754 LOperand* object = UseRegister(instr->object()); |
| 2755 LOperand* index = UseTempRegister(instr->index()); | 2755 LOperand* index = UseTempRegister(instr->index()); |
| 2756 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2756 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2757 } | 2757 } |
| 2758 | 2758 |
| 2759 | 2759 |
| 2760 } } // namespace v8::internal | 2760 } } // namespace v8::internal |
| 2761 | 2761 |
| 2762 #endif // V8_TARGET_ARCH_IA32 | 2762 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |