| 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 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2414 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2415 LParameter* result = new(zone()) LParameter; | 2415 LParameter* result = new(zone()) LParameter; |
| 2416 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2416 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2417 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2417 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2418 return DefineAsSpilled(result, spill_index); | 2418 return DefineAsSpilled(result, spill_index); |
| 2419 } else { | 2419 } else { |
| 2420 ASSERT(info()->IsStub()); | 2420 ASSERT(info()->IsStub()); |
| 2421 CodeStubInterfaceDescriptor* descriptor = | 2421 CodeStubInterfaceDescriptor* descriptor = |
| 2422 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2422 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2423 int index = static_cast<int>(instr->index()); | 2423 int index = static_cast<int>(instr->index()); |
| 2424 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 2424 Register reg = descriptor->GetParameterRegister(index); |
| 2425 return DefineFixed(result, reg); | 2425 return DefineFixed(result, reg); |
| 2426 } | 2426 } |
| 2427 } | 2427 } |
| 2428 | 2428 |
| 2429 | 2429 |
| 2430 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2430 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2431 // Use an index that corresponds to the location in the unoptimized frame, | 2431 // Use an index that corresponds to the location in the unoptimized frame, |
| 2432 // which the optimized frame will subsume. | 2432 // which the optimized frame will subsume. |
| 2433 int env_index = instr->index(); | 2433 int env_index = instr->index(); |
| 2434 int spill_index = 0; | 2434 int spill_index = 0; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 | 2604 |
| 2605 | 2605 |
| 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2607 LOperand* object = UseRegister(instr->object()); | 2607 LOperand* object = UseRegister(instr->object()); |
| 2608 LOperand* index = UseRegister(instr->index()); | 2608 LOperand* index = UseRegister(instr->index()); |
| 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2610 } | 2610 } |
| 2611 | 2611 |
| 2612 | 2612 |
| 2613 } } // namespace v8::internal | 2613 } } // namespace v8::internal |
| OLD | NEW |