| 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 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2409 HEnvironment* inner = outer->CopyForInlining( | 2409 HEnvironment* inner = outer->CopyForInlining( |
| 2410 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2410 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
| 2411 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 2411 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
| 2412 // Only replay binding of arguments object if it wasn't removed from graph. | 2412 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2413 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2413 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2414 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2414 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2415 } | 2415 } |
| 2416 inner->BindContext(instr->closure_context()); | 2416 inner->BindContext(instr->closure_context()); |
| 2417 inner->set_entry(instr); | 2417 inner->set_entry(instr); |
| 2418 current_block_->UpdateEnvironment(inner); | 2418 current_block_->UpdateEnvironment(inner); |
| 2419 chunk_->AddInlinedFunction(instr->shared()); | 2419 |
| 2420 return NULL; | 2420 return NULL; |
| 2421 } | 2421 } |
| 2422 | 2422 |
| 2423 | 2423 |
| 2424 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2424 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2425 LInstruction* pop = NULL; | 2425 LInstruction* pop = NULL; |
| 2426 | 2426 |
| 2427 HEnvironment* env = current_block_->last_environment(); | 2427 HEnvironment* env = current_block_->last_environment(); |
| 2428 | 2428 |
| 2429 if (env->entry()->arguments_pushed()) { | 2429 if (env->entry()->arguments_pushed()) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2467 LOperand* index = UseTempRegister(instr->index()); | 2467 LOperand* index = UseTempRegister(instr->index()); |
| 2468 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2468 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2469 LInstruction* result = DefineSameAsFirst(load); | 2469 LInstruction* result = DefineSameAsFirst(load); |
| 2470 return AssignPointerMap(result); | 2470 return AssignPointerMap(result); |
| 2471 } | 2471 } |
| 2472 | 2472 |
| 2473 } // namespace internal | 2473 } // namespace internal |
| 2474 } // namespace v8 | 2474 } // namespace v8 |
| 2475 | 2475 |
| 2476 #endif // V8_TARGET_ARCH_X64 | 2476 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |