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 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2530 | 2530 |
2531 | 2531 |
2532 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2532 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2533 LParameter* result = new(zone()) LParameter; | 2533 LParameter* result = new(zone()) LParameter; |
2534 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2534 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2535 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2535 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2536 return DefineAsSpilled(result, spill_index); | 2536 return DefineAsSpilled(result, spill_index); |
2537 } else { | 2537 } else { |
2538 ASSERT(info()->IsStub()); | 2538 ASSERT(info()->IsStub()); |
2539 CodeStubInterfaceDescriptor* descriptor = | 2539 CodeStubInterfaceDescriptor* descriptor = |
2540 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2540 info()->code_stub()->GetInterfaceDescriptor(); |
2541 int index = static_cast<int>(instr->index()); | 2541 int index = static_cast<int>(instr->index()); |
2542 Register reg = descriptor->GetParameterRegister(index); | 2542 Register reg = descriptor->GetParameterRegister(index); |
2543 return DefineFixed(result, reg); | 2543 return DefineFixed(result, reg); |
2544 } | 2544 } |
2545 } | 2545 } |
2546 | 2546 |
2547 | 2547 |
2548 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2548 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2549 // Use an index that corresponds to the location in the unoptimized frame, | 2549 // Use an index that corresponds to the location in the unoptimized frame, |
2550 // which the optimized frame will subsume. | 2550 // which the optimized frame will subsume. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2720 LOperand* index = UseTempRegister(instr->index()); | 2720 LOperand* index = UseTempRegister(instr->index()); |
2721 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2721 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2722 LInstruction* result = DefineSameAsFirst(load); | 2722 LInstruction* result = DefineSameAsFirst(load); |
2723 return AssignPointerMap(result); | 2723 return AssignPointerMap(result); |
2724 } | 2724 } |
2725 | 2725 |
2726 | 2726 |
2727 } } // namespace v8::internal | 2727 } } // namespace v8::internal |
2728 | 2728 |
2729 #endif // V8_TARGET_ARCH_IA32 | 2729 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |