| 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 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2482 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2482 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2483 LParameter* result = new(zone()) LParameter; | 2483 LParameter* result = new(zone()) LParameter; |
| 2484 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2484 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2485 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2485 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2486 return DefineAsSpilled(result, spill_index); | 2486 return DefineAsSpilled(result, spill_index); |
| 2487 } else { | 2487 } else { |
| 2488 ASSERT(info()->IsStub()); | 2488 ASSERT(info()->IsStub()); |
| 2489 CodeStubInterfaceDescriptor* descriptor = | 2489 CodeStubInterfaceDescriptor* descriptor = |
| 2490 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2490 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2491 int index = static_cast<int>(instr->index()); | 2491 int index = static_cast<int>(instr->index()); |
| 2492 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 2492 Register reg = descriptor->GetParameterRegister(index); |
| 2493 return DefineFixed(result, reg); | 2493 return DefineFixed(result, reg); |
| 2494 } | 2494 } |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 | 2497 |
| 2498 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2498 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2499 // Use an index that corresponds to the location in the unoptimized frame, | 2499 // Use an index that corresponds to the location in the unoptimized frame, |
| 2500 // which the optimized frame will subsume. | 2500 // which the optimized frame will subsume. |
| 2501 int env_index = instr->index(); | 2501 int env_index = instr->index(); |
| 2502 int spill_index = 0; | 2502 int spill_index = 0; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 | 2672 |
| 2673 | 2673 |
| 2674 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2674 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2675 LOperand* object = UseRegister(instr->object()); | 2675 LOperand* object = UseRegister(instr->object()); |
| 2676 LOperand* index = UseRegister(instr->index()); | 2676 LOperand* index = UseRegister(instr->index()); |
| 2677 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2677 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2678 } | 2678 } |
| 2679 | 2679 |
| 2680 | 2680 |
| 2681 } } // namespace v8::internal | 2681 } } // namespace v8::internal |
| OLD | NEW |