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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 | 10 |
(...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2405 HEnvironment* inner = outer->CopyForInlining( | 2405 HEnvironment* inner = outer->CopyForInlining( |
2406 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2406 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2407 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 2407 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2408 // Only replay binding of arguments object if it wasn't removed from graph. | 2408 // Only replay binding of arguments object if it wasn't removed from graph. |
2409 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2409 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2410 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2410 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2411 } | 2411 } |
2412 inner->BindContext(instr->closure_context()); | 2412 inner->BindContext(instr->closure_context()); |
2413 inner->set_entry(instr); | 2413 inner->set_entry(instr); |
2414 current_block_->UpdateEnvironment(inner); | 2414 current_block_->UpdateEnvironment(inner); |
2415 chunk_->AddInlinedFunction(instr->shared()); | 2415 |
2416 return NULL; | 2416 return NULL; |
2417 } | 2417 } |
2418 | 2418 |
2419 | 2419 |
2420 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2420 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2421 LInstruction* pop = NULL; | 2421 LInstruction* pop = NULL; |
2422 | 2422 |
2423 HEnvironment* env = current_block_->last_environment(); | 2423 HEnvironment* env = current_block_->last_environment(); |
2424 | 2424 |
2425 if (env->entry()->arguments_pushed()) { | 2425 if (env->entry()->arguments_pushed()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2462 LOperand* index = UseTempRegister(instr->index()); | 2462 LOperand* index = UseTempRegister(instr->index()); |
2463 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2463 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2464 LInstruction* result = DefineSameAsFirst(load); | 2464 LInstruction* result = DefineSameAsFirst(load); |
2465 return AssignPointerMap(result); | 2465 return AssignPointerMap(result); |
2466 } | 2466 } |
2467 | 2467 |
2468 } // namespace internal | 2468 } // namespace internal |
2469 } // namespace v8 | 2469 } // namespace v8 |
2470 | 2470 |
2471 #endif // V8_TARGET_ARCH_IA32 | 2471 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |