OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 | 1956 |
1957 | 1957 |
1958 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1958 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
1959 LParameter* result = new(zone()) LParameter; | 1959 LParameter* result = new(zone()) LParameter; |
1960 if (instr->kind() == HParameter::STACK_PARAMETER) { | 1960 if (instr->kind() == HParameter::STACK_PARAMETER) { |
1961 int spill_index = chunk_->GetParameterStackSlot(instr->index()); | 1961 int spill_index = chunk_->GetParameterStackSlot(instr->index()); |
1962 return DefineAsSpilled(result, spill_index); | 1962 return DefineAsSpilled(result, spill_index); |
1963 } else { | 1963 } else { |
1964 ASSERT(info()->IsStub()); | 1964 ASSERT(info()->IsStub()); |
1965 CodeStubInterfaceDescriptor* descriptor = | 1965 CodeStubInterfaceDescriptor* descriptor = |
1966 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 1966 info()->code_stub()->GetInterfaceDescriptor(); |
1967 int index = static_cast<int>(instr->index()); | 1967 int index = static_cast<int>(instr->index()); |
1968 Register reg = descriptor->GetParameterRegister(index); | 1968 Register reg = descriptor->GetParameterRegister(index); |
1969 return DefineFixed(result, reg); | 1969 return DefineFixed(result, reg); |
1970 } | 1970 } |
1971 } | 1971 } |
1972 | 1972 |
1973 | 1973 |
1974 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1974 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
1975 ASSERT(instr->representation().IsDouble()); | 1975 ASSERT(instr->representation().IsDouble()); |
1976 // We call a C function for double power. It can't trigger a GC. | 1976 // We call a C function for double power. It can't trigger a GC. |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 | 2575 |
2576 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2576 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2577 LOperand* receiver = UseRegister(instr->receiver()); | 2577 LOperand* receiver = UseRegister(instr->receiver()); |
2578 LOperand* function = UseRegister(instr->function()); | 2578 LOperand* function = UseRegister(instr->function()); |
2579 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2579 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2580 return AssignEnvironment(DefineAsRegister(result)); | 2580 return AssignEnvironment(DefineAsRegister(result)); |
2581 } | 2581 } |
2582 | 2582 |
2583 | 2583 |
2584 } } // namespace v8::internal | 2584 } } // namespace v8::internal |
OLD | NEW |