| 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 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()); | |
| 2420 return NULL; | 2419 return NULL; |
| 2421 } | 2420 } |
| 2422 | 2421 |
| 2423 | 2422 |
| 2424 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2423 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2425 LInstruction* pop = NULL; | 2424 LInstruction* pop = NULL; |
| 2426 | 2425 |
| 2427 HEnvironment* env = current_block_->last_environment(); | 2426 HEnvironment* env = current_block_->last_environment(); |
| 2428 | 2427 |
| 2429 if (env->entry()->arguments_pushed()) { | 2428 if (env->entry()->arguments_pushed()) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2466 LOperand* index = UseTempRegister(instr->index()); | 2465 LOperand* index = UseTempRegister(instr->index()); |
| 2467 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2466 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2468 LInstruction* result = DefineSameAsFirst(load); | 2467 LInstruction* result = DefineSameAsFirst(load); |
| 2469 return AssignPointerMap(result); | 2468 return AssignPointerMap(result); |
| 2470 } | 2469 } |
| 2471 | 2470 |
| 2472 } // namespace internal | 2471 } // namespace internal |
| 2473 } // namespace v8 | 2472 } // namespace v8 |
| 2474 | 2473 |
| 2475 #endif // V8_TARGET_ARCH_X87 | 2474 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |