OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 | 1400 |
1401 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { | 1401 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { |
1402 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); | 1402 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); |
1403 } | 1403 } |
1404 | 1404 |
1405 | 1405 |
1406 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 1406 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
1407 HEnvironment* outer = current_block_->last_environment(); | 1407 HEnvironment* outer = current_block_->last_environment(); |
1408 outer->set_ast_id(instr->ReturnId()); | 1408 outer->set_ast_id(instr->ReturnId()); |
1409 HConstant* undefined = graph()->GetConstantUndefined(); | 1409 HConstant* undefined = graph()->GetConstantUndefined(); |
1410 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 1410 HEnvironment* inner = outer->CopyForInlining( |
1411 instr->arguments_count(), | 1411 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
1412 instr->function(), | 1412 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
1413 undefined, | |
1414 instr->inlining_kind()); | |
1415 // Only replay binding of arguments object if it wasn't removed from graph. | 1413 // Only replay binding of arguments object if it wasn't removed from graph. |
1416 if ((instr->arguments_var() != NULL) && | 1414 if ((instr->arguments_var() != NULL) && |
1417 instr->arguments_object()->IsLinked()) { | 1415 instr->arguments_object()->IsLinked()) { |
1418 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 1416 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
1419 } | 1417 } |
1420 inner->BindContext(instr->closure_context()); | 1418 inner->BindContext(instr->closure_context()); |
1421 inner->set_entry(instr); | 1419 inner->set_entry(instr); |
1422 current_block_->UpdateEnvironment(inner); | 1420 current_block_->UpdateEnvironment(inner); |
1423 chunk_->AddInlinedFunction(instr->shared()); | 1421 chunk_->AddInlinedFunction(instr->shared()); |
1424 return NULL; | 1422 return NULL; |
(...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2636 | 2634 |
2637 | 2635 |
2638 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2636 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2639 LOperand* context = UseRegisterAtStart(instr->context()); | 2637 LOperand* context = UseRegisterAtStart(instr->context()); |
2640 return new(zone()) LStoreFrameContext(context); | 2638 return new(zone()) LStoreFrameContext(context); |
2641 } | 2639 } |
2642 | 2640 |
2643 | 2641 |
2644 } // namespace internal | 2642 } // namespace internal |
2645 } // namespace v8 | 2643 } // namespace v8 |
OLD | NEW |