| 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 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2250 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2250 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2251 ASSERT(argument_count_ == 0); | 2251 ASSERT(argument_count_ == 0); |
| 2252 allocator_->MarkAsOsrEntry(); | 2252 allocator_->MarkAsOsrEntry(); |
| 2253 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2253 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2254 return AssignEnvironment(new(zone()) LOsrEntry); | 2254 return AssignEnvironment(new(zone()) LOsrEntry); |
| 2255 } | 2255 } |
| 2256 | 2256 |
| 2257 | 2257 |
| 2258 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2258 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2259 LParameter* result = new(zone()) LParameter; | 2259 LParameter* result = new(zone()) LParameter; |
| 2260 if (info()->IsOptimizing()) { | 2260 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2261 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2261 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2262 return DefineAsSpilled(result, spill_index); | 2262 return DefineAsSpilled(result, spill_index); |
| 2263 } else { | 2263 } else { |
| 2264 ASSERT(info()->IsStub()); | 2264 ASSERT(info()->IsStub()); |
| 2265 CodeStubInterfaceDescriptor* descriptor = | 2265 CodeStubInterfaceDescriptor* descriptor = |
| 2266 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2266 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 2267 Register reg = descriptor->register_params_[instr->index()]; | 2267 Register reg = descriptor->register_params_[instr->index()]; |
| 2268 return DefineFixed(result, reg); | 2268 return DefineFixed(result, reg); |
| 2269 } | 2269 } |
| 2270 } | 2270 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 | 2438 |
| 2439 | 2439 |
| 2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2441 LOperand* object = UseRegister(instr->object()); | 2441 LOperand* object = UseRegister(instr->object()); |
| 2442 LOperand* index = UseRegister(instr->index()); | 2442 LOperand* index = UseRegister(instr->index()); |
| 2443 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2443 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2444 } | 2444 } |
| 2445 | 2445 |
| 2446 | 2446 |
| 2447 } } // namespace v8::internal | 2447 } } // namespace v8::internal |
| OLD | NEW |