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 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2446 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
2447 int index = static_cast<int>(instr->index()); | 2447 int index = static_cast<int>(instr->index()); |
2448 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 2448 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); |
2449 return DefineFixed(result, reg); | 2449 return DefineFixed(result, reg); |
2450 } | 2450 } |
2451 } | 2451 } |
2452 | 2452 |
2453 | 2453 |
2454 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2454 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2455 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. | 2455 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. |
2456 if (spill_index > LUnallocated::kMaxFixedIndex) { | 2456 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
2457 Abort("Too many spill slots needed for OSR"); | 2457 Abort("Too many spill slots needed for OSR"); |
2458 spill_index = 0; | 2458 spill_index = 0; |
2459 } | 2459 } |
2460 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); | 2460 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
2461 } | 2461 } |
2462 | 2462 |
2463 | 2463 |
2464 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 2464 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { |
2465 argument_count_ -= instr->argument_count(); | 2465 argument_count_ -= instr->argument_count(); |
2466 return MarkAsCall(DefineFixed(new(zone()) LCallStub, r0), instr); | 2466 return MarkAsCall(DefineFixed(new(zone()) LCallStub, r0), instr); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 | 2627 |
2628 | 2628 |
2629 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2629 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2630 LOperand* object = UseRegister(instr->object()); | 2630 LOperand* object = UseRegister(instr->object()); |
2631 LOperand* index = UseRegister(instr->index()); | 2631 LOperand* index = UseRegister(instr->index()); |
2632 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2632 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2633 } | 2633 } |
2634 | 2634 |
2635 | 2635 |
2636 } } // namespace v8::internal | 2636 } } // namespace v8::internal |
OLD | NEW |