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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
10 | 10 |
(...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2527 return AssignEnvironment( | 2527 return AssignEnvironment( |
2528 AssignPointerMap(new(zone()) LStackCheck(context))); | 2528 AssignPointerMap(new(zone()) LStackCheck(context))); |
2529 } | 2529 } |
2530 } | 2530 } |
2531 | 2531 |
2532 | 2532 |
2533 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2533 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
2534 HEnvironment* outer = current_block_->last_environment(); | 2534 HEnvironment* outer = current_block_->last_environment(); |
2535 outer->set_ast_id(instr->ReturnId()); | 2535 outer->set_ast_id(instr->ReturnId()); |
2536 HConstant* undefined = graph()->GetConstantUndefined(); | 2536 HConstant* undefined = graph()->GetConstantUndefined(); |
2537 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2537 HEnvironment* inner = outer->CopyForInlining( |
2538 instr->arguments_count(), | 2538 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2539 instr->function(), | 2539 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2540 undefined, | |
2541 instr->inlining_kind()); | |
2542 // Only replay binding of arguments object if it wasn't removed from graph. | 2540 // Only replay binding of arguments object if it wasn't removed from graph. |
2543 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2541 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2544 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2542 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2545 } | 2543 } |
2546 inner->BindContext(instr->closure_context()); | 2544 inner->BindContext(instr->closure_context()); |
2547 inner->set_entry(instr); | 2545 inner->set_entry(instr); |
2548 current_block_->UpdateEnvironment(inner); | 2546 current_block_->UpdateEnvironment(inner); |
2549 chunk_->AddInlinedFunction(instr->shared()); | 2547 chunk_->AddInlinedFunction(instr->shared()); |
2550 return NULL; | 2548 return NULL; |
2551 } | 2549 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2603 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2601 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2604 LOperand* context = UseRegisterAtStart(instr->context()); | 2602 LOperand* context = UseRegisterAtStart(instr->context()); |
2605 return new(zone()) LStoreFrameContext(context); | 2603 return new(zone()) LStoreFrameContext(context); |
2606 } | 2604 } |
2607 | 2605 |
2608 | 2606 |
2609 } // namespace internal | 2607 } // namespace internal |
2610 } // namespace v8 | 2608 } // namespace v8 |
2611 | 2609 |
2612 #endif // V8_TARGET_ARCH_X87 | 2610 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |