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 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2339 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2339 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2340 ASSERT(argument_count_ == 0); | 2340 ASSERT(argument_count_ == 0); |
2341 allocator_->MarkAsOsrEntry(); | 2341 allocator_->MarkAsOsrEntry(); |
2342 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2342 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2343 return AssignEnvironment(new(zone()) LOsrEntry); | 2343 return AssignEnvironment(new(zone()) LOsrEntry); |
2344 } | 2344 } |
2345 | 2345 |
2346 | 2346 |
2347 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2347 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2348 LParameter* result = new(zone()) LParameter; | 2348 LParameter* result = new(zone()) LParameter; |
2349 if (info()->IsOptimizing()) { | 2349 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2350 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2350 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2351 return DefineAsSpilled(result, spill_index); | 2351 return DefineAsSpilled(result, spill_index); |
2352 } else { | 2352 } else { |
2353 ASSERT(info()->IsStub()); | 2353 ASSERT(info()->IsStub()); |
2354 CodeStubInterfaceDescriptor* descriptor = | 2354 CodeStubInterfaceDescriptor* descriptor = |
2355 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2355 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
2356 Register reg = descriptor->register_params_[instr->index()]; | 2356 Register reg = descriptor->register_params_[instr->index()]; |
2357 return DefineFixed(result, reg); | 2357 return DefineFixed(result, reg); |
2358 } | 2358 } |
2359 } | 2359 } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2541 LOperand* object = UseRegister(instr->object()); | 2541 LOperand* object = UseRegister(instr->object()); |
2542 LOperand* index = UseTempRegister(instr->index()); | 2542 LOperand* index = UseTempRegister(instr->index()); |
2543 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2543 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2544 } | 2544 } |
2545 | 2545 |
2546 | 2546 |
2547 } } // namespace v8::internal | 2547 } } // namespace v8::internal |
2548 | 2548 |
2549 #endif // V8_TARGET_ARCH_IA32 | 2549 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |