OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2426 } | 2426 } |
2427 } | 2427 } |
2428 | 2428 |
2429 | 2429 |
2430 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2430 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
2431 HEnvironment* outer = current_block_->last_environment(); | 2431 HEnvironment* outer = current_block_->last_environment(); |
2432 outer->set_ast_id(instr->ReturnId()); | 2432 outer->set_ast_id(instr->ReturnId()); |
2433 HConstant* undefined = graph()->GetConstantUndefined(); | 2433 HConstant* undefined = graph()->GetConstantUndefined(); |
2434 HEnvironment* inner = outer->CopyForInlining( | 2434 HEnvironment* inner = outer->CopyForInlining( |
2435 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2435 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2436 instr->inlining_kind()); | 2436 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2437 // Only replay binding of arguments object if it wasn't removed from graph. | 2437 // Only replay binding of arguments object if it wasn't removed from graph. |
2438 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2438 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2439 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2439 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2440 } | 2440 } |
2441 inner->BindContext(instr->closure_context()); | 2441 inner->BindContext(instr->closure_context()); |
2442 inner->set_entry(instr); | 2442 inner->set_entry(instr); |
2443 current_block_->UpdateEnvironment(inner); | 2443 current_block_->UpdateEnvironment(inner); |
2444 chunk_->AddInlinedFunction(instr->shared()); | 2444 chunk_->AddInlinedFunction(instr->shared()); |
2445 return NULL; | 2445 return NULL; |
2446 } | 2446 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 } | 2496 } |
2497 | 2497 |
2498 | 2498 |
2499 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2499 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2500 LOperand* context = UseRegisterAtStart(instr->context()); | 2500 LOperand* context = UseRegisterAtStart(instr->context()); |
2501 return new (zone()) LStoreFrameContext(context); | 2501 return new (zone()) LStoreFrameContext(context); |
2502 } | 2502 } |
2503 | 2503 |
2504 } // namespace internal | 2504 } // namespace internal |
2505 } // namespace v8 | 2505 } // namespace v8 |
OLD | NEW |