| 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 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2157 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2157 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2158 ASSERT(argument_count_ == 0); | 2158 ASSERT(argument_count_ == 0); |
| 2159 allocator_->MarkAsOsrEntry(); | 2159 allocator_->MarkAsOsrEntry(); |
| 2160 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2160 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2161 return AssignEnvironment(new(zone()) LOsrEntry); | 2161 return AssignEnvironment(new(zone()) LOsrEntry); |
| 2162 } | 2162 } |
| 2163 | 2163 |
| 2164 | 2164 |
| 2165 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2165 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2166 LParameter* result = new(zone()) LParameter; | 2166 LParameter* result = new(zone()) LParameter; |
| 2167 if (info()->IsOptimizing()) { | 2167 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2168 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2168 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2169 return DefineAsSpilled(result, spill_index); | 2169 return DefineAsSpilled(result, spill_index); |
| 2170 } else { | 2170 } else { |
| 2171 ASSERT(info()->IsStub()); | 2171 ASSERT(info()->IsStub()); |
| 2172 CodeStubInterfaceDescriptor* descriptor = | 2172 CodeStubInterfaceDescriptor* descriptor = |
| 2173 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2173 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2174 Register reg = descriptor->register_params_[instr->index()]; | 2174 Register reg = descriptor->register_params_[instr->index()]; |
| 2175 return DefineFixed(result, reg); | 2175 return DefineFixed(result, reg); |
| 2176 } | 2176 } |
| 2177 } | 2177 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 | 2345 |
| 2346 | 2346 |
| 2347 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2347 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2348 LOperand* object = UseRegister(instr->object()); | 2348 LOperand* object = UseRegister(instr->object()); |
| 2349 LOperand* index = UseRegister(instr->index()); | 2349 LOperand* index = UseRegister(instr->index()); |
| 2350 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2350 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2351 } | 2351 } |
| 2352 | 2352 |
| 2353 | 2353 |
| 2354 } } // namespace v8::internal | 2354 } } // namespace v8::internal |
| OLD | NEW |