| 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 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2617 } | 2617 } |
| 2618 | 2618 |
| 2619 | 2619 |
| 2620 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2620 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 2621 HEnvironment* outer = current_block_->last_environment(); | 2621 HEnvironment* outer = current_block_->last_environment(); |
| 2622 HConstant* undefined = graph()->GetConstantUndefined(); | 2622 HConstant* undefined = graph()->GetConstantUndefined(); |
| 2623 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2623 HEnvironment* inner = outer->CopyForInlining(instr->closure(), |
| 2624 instr->arguments_count(), | 2624 instr->arguments_count(), |
| 2625 instr->function(), | 2625 instr->function(), |
| 2626 undefined, | 2626 undefined, |
| 2627 instr->inlining_kind(), | 2627 instr->inlining_kind()); |
| 2628 instr->undefined_receiver()); | |
| 2629 // Only replay binding of arguments object if it wasn't removed from graph. | 2628 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2630 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2629 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2631 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2630 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2632 } | 2631 } |
| 2633 inner->set_entry(instr); | 2632 inner->set_entry(instr); |
| 2634 current_block_->UpdateEnvironment(inner); | 2633 current_block_->UpdateEnvironment(inner); |
| 2635 chunk_->AddInlinedClosure(instr->closure()); | 2634 chunk_->AddInlinedClosure(instr->closure()); |
| 2636 return NULL; | 2635 return NULL; |
| 2637 } | 2636 } |
| 2638 | 2637 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2679 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2681 LOperand* object = UseRegister(instr->object()); | 2680 LOperand* object = UseRegister(instr->object()); |
| 2682 LOperand* index = UseTempRegister(instr->index()); | 2681 LOperand* index = UseTempRegister(instr->index()); |
| 2683 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2682 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2684 } | 2683 } |
| 2685 | 2684 |
| 2686 | 2685 |
| 2687 } } // namespace v8::internal | 2686 } } // namespace v8::internal |
| 2688 | 2687 |
| 2689 #endif // V8_TARGET_ARCH_IA32 | 2688 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |