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