| 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 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2658 instr->function(), | 2658 instr->function(), |
| 2659 undefined, | 2659 undefined, |
| 2660 instr->inlining_kind()); | 2660 instr->inlining_kind()); |
| 2661 // Only replay binding of arguments object if it wasn't removed from graph. | 2661 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2662 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2662 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2663 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2663 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2664 } | 2664 } |
| 2665 inner->BindContext(instr->closure_context()); | 2665 inner->BindContext(instr->closure_context()); |
| 2666 inner->set_entry(instr); | 2666 inner->set_entry(instr); |
| 2667 current_block_->UpdateEnvironment(inner); | 2667 current_block_->UpdateEnvironment(inner); |
| 2668 chunk_->AddInlinedClosure(instr->closure()); | 2668 chunk_->AddInlinedFunction(instr->shared()); |
| 2669 return NULL; | 2669 return NULL; |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 | 2672 |
| 2673 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2673 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2674 LInstruction* pop = NULL; | 2674 LInstruction* pop = NULL; |
| 2675 | 2675 |
| 2676 HEnvironment* env = current_block_->last_environment(); | 2676 HEnvironment* env = current_block_->last_environment(); |
| 2677 | 2677 |
| 2678 if (env->entry()->arguments_pushed()) { | 2678 if (env->entry()->arguments_pushed()) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 LOperand* function = UseRegisterAtStart(instr->function()); | 2731 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2732 LAllocateBlockContext* result = | 2732 LAllocateBlockContext* result = |
| 2733 new(zone()) LAllocateBlockContext(context, function); | 2733 new(zone()) LAllocateBlockContext(context, function); |
| 2734 return MarkAsCall(DefineFixed(result, esi), instr); | 2734 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2735 } | 2735 } |
| 2736 | 2736 |
| 2737 | 2737 |
| 2738 } } // namespace v8::internal | 2738 } } // namespace v8::internal |
| 2739 | 2739 |
| 2740 #endif // V8_TARGET_ARCH_IA32 | 2740 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |