| 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 "src/crankshaft/x64/lithium-x64.h" | 5 #include "src/crankshaft/x64/lithium-x64.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
| 10 | 10 |
| (...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 return AssignEnvironment( | 2537 return AssignEnvironment( |
| 2538 AssignPointerMap(new(zone()) LStackCheck(context))); | 2538 AssignPointerMap(new(zone()) LStackCheck(context))); |
| 2539 } | 2539 } |
| 2540 } | 2540 } |
| 2541 | 2541 |
| 2542 | 2542 |
| 2543 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2543 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 2544 HEnvironment* outer = current_block_->last_environment(); | 2544 HEnvironment* outer = current_block_->last_environment(); |
| 2545 outer->set_ast_id(instr->ReturnId()); | 2545 outer->set_ast_id(instr->ReturnId()); |
| 2546 HConstant* undefined = graph()->GetConstantUndefined(); | 2546 HConstant* undefined = graph()->GetConstantUndefined(); |
| 2547 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2547 HEnvironment* inner = outer->CopyForInlining( |
| 2548 instr->arguments_count(), | 2548 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
| 2549 instr->function(), | 2549 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
| 2550 undefined, | |
| 2551 instr->inlining_kind()); | |
| 2552 // Only replay binding of arguments object if it wasn't removed from graph. | 2550 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2553 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2551 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2554 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2552 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2555 } | 2553 } |
| 2556 inner->BindContext(instr->closure_context()); | 2554 inner->BindContext(instr->closure_context()); |
| 2557 inner->set_entry(instr); | 2555 inner->set_entry(instr); |
| 2558 current_block_->UpdateEnvironment(inner); | 2556 current_block_->UpdateEnvironment(inner); |
| 2559 chunk_->AddInlinedFunction(instr->shared()); | 2557 chunk_->AddInlinedFunction(instr->shared()); |
| 2560 return NULL; | 2558 return NULL; |
| 2561 } | 2559 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2614 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2612 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2615 LOperand* context = UseRegisterAtStart(instr->context()); | 2613 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2616 return new(zone()) LStoreFrameContext(context); | 2614 return new(zone()) LStoreFrameContext(context); |
| 2617 } | 2615 } |
| 2618 | 2616 |
| 2619 | 2617 |
| 2620 } // namespace internal | 2618 } // namespace internal |
| 2621 } // namespace v8 | 2619 } // namespace v8 |
| 2622 | 2620 |
| 2623 #endif // V8_TARGET_ARCH_X64 | 2621 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |