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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2310 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2311 ASSERT(argument_count_ == 0); | 2311 ASSERT(argument_count_ == 0); |
2312 allocator_->MarkAsOsrEntry(); | 2312 allocator_->MarkAsOsrEntry(); |
2313 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2313 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2314 return AssignEnvironment(new(zone()) LOsrEntry); | 2314 return AssignEnvironment(new(zone()) LOsrEntry); |
2315 } | 2315 } |
2316 | 2316 |
2317 | 2317 |
2318 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2318 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2319 LParameter* result = new(zone()) LParameter; | 2319 LParameter* result = new(zone()) LParameter; |
2320 if (info()->IsOptimizing()) { | 2320 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2321 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2321 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2322 return DefineAsSpilled(result, spill_index); | 2322 return DefineAsSpilled(result, spill_index); |
2323 } else { | 2323 } else { |
2324 ASSERT(info()->IsStub()); | 2324 ASSERT(info()->IsStub()); |
2325 CodeStubInterfaceDescriptor* descriptor = | 2325 CodeStubInterfaceDescriptor* descriptor = |
2326 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 2326 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
2327 Register reg = descriptor->register_params_[instr->index()]; | 2327 Register reg = descriptor->register_params_[instr->index()]; |
2328 return DefineFixed(result, reg); | 2328 return DefineFixed(result, reg); |
2329 } | 2329 } |
2330 } | 2330 } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2511 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2512 LOperand* object = UseRegister(instr->object()); | 2512 LOperand* object = UseRegister(instr->object()); |
2513 LOperand* index = UseTempRegister(instr->index()); | 2513 LOperand* index = UseTempRegister(instr->index()); |
2514 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2514 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2515 } | 2515 } |
2516 | 2516 |
2517 | 2517 |
2518 } } // namespace v8::internal | 2518 } } // namespace v8::internal |
2519 | 2519 |
2520 #endif // V8_TARGET_ARCH_IA32 | 2520 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |