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_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2629 instr->function(), | 2629 instr->function(), |
2630 undefined, | 2630 undefined, |
2631 instr->inlining_kind()); | 2631 instr->inlining_kind()); |
2632 // Only replay binding of arguments object if it wasn't removed from graph. | 2632 // Only replay binding of arguments object if it wasn't removed from graph. |
2633 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2633 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2634 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2634 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2635 } | 2635 } |
2636 inner->BindContext(instr->closure_context()); | 2636 inner->BindContext(instr->closure_context()); |
2637 inner->set_entry(instr); | 2637 inner->set_entry(instr); |
2638 current_block_->UpdateEnvironment(inner); | 2638 current_block_->UpdateEnvironment(inner); |
2639 chunk_->AddInlinedClosure(instr->closure()); | 2639 chunk_->AddInlinedFunction(instr->shared()); |
2640 return NULL; | 2640 return NULL; |
2641 } | 2641 } |
2642 | 2642 |
2643 | 2643 |
2644 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2644 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2645 LInstruction* pop = NULL; | 2645 LInstruction* pop = NULL; |
2646 | 2646 |
2647 HEnvironment* env = current_block_->last_environment(); | 2647 HEnvironment* env = current_block_->last_environment(); |
2648 | 2648 |
2649 if (env->entry()->arguments_pushed()) { | 2649 if (env->entry()->arguments_pushed()) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 LOperand* function = UseRegisterAtStart(instr->function()); | 2703 LOperand* function = UseRegisterAtStart(instr->function()); |
2704 LAllocateBlockContext* result = | 2704 LAllocateBlockContext* result = |
2705 new(zone()) LAllocateBlockContext(context, function); | 2705 new(zone()) LAllocateBlockContext(context, function); |
2706 return MarkAsCall(DefineFixed(result, rsi), instr); | 2706 return MarkAsCall(DefineFixed(result, rsi), instr); |
2707 } | 2707 } |
2708 | 2708 |
2709 | 2709 |
2710 } } // namespace v8::internal | 2710 } } // namespace v8::internal |
2711 | 2711 |
2712 #endif // V8_TARGET_ARCH_X64 | 2712 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |