| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2596 instr->function(), | 2596 instr->function(), |
| 2597 undefined, | 2597 undefined, |
| 2598 instr->inlining_kind()); | 2598 instr->inlining_kind()); |
| 2599 // Only replay binding of arguments object if it wasn't removed from graph. | 2599 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2600 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2600 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2601 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2601 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2602 } | 2602 } |
| 2603 inner->BindContext(instr->closure_context()); | 2603 inner->BindContext(instr->closure_context()); |
| 2604 inner->set_entry(instr); | 2604 inner->set_entry(instr); |
| 2605 current_block_->UpdateEnvironment(inner); | 2605 current_block_->UpdateEnvironment(inner); |
| 2606 chunk_->AddInlinedClosure(instr->closure()); | 2606 chunk_->AddInlinedFunction(instr->shared()); |
| 2607 return NULL; | 2607 return NULL; |
| 2608 } | 2608 } |
| 2609 | 2609 |
| 2610 | 2610 |
| 2611 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2611 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2612 LInstruction* pop = NULL; | 2612 LInstruction* pop = NULL; |
| 2613 | 2613 |
| 2614 HEnvironment* env = current_block_->last_environment(); | 2614 HEnvironment* env = current_block_->last_environment(); |
| 2615 | 2615 |
| 2616 if (env->entry()->arguments_pushed()) { | 2616 if (env->entry()->arguments_pushed()) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2666 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2666 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2667 HAllocateBlockContext* instr) { | 2667 HAllocateBlockContext* instr) { |
| 2668 LOperand* context = UseFixed(instr->context(), cp); | 2668 LOperand* context = UseFixed(instr->context(), cp); |
| 2669 LOperand* function = UseRegisterAtStart(instr->function()); | 2669 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2670 LAllocateBlockContext* result = | 2670 LAllocateBlockContext* result = |
| 2671 new(zone()) LAllocateBlockContext(context, function); | 2671 new(zone()) LAllocateBlockContext(context, function); |
| 2672 return MarkAsCall(DefineFixed(result, cp), instr); | 2672 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2673 } | 2673 } |
| 2674 | 2674 |
| 2675 } } // namespace v8::internal | 2675 } } // namespace v8::internal |
| OLD | NEW |