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 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2306 HEnvironment* inner = outer->CopyForInlining( | 2306 HEnvironment* inner = outer->CopyForInlining( |
2307 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2307 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2308 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 2308 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2309 // Only replay binding of arguments object if it wasn't removed from graph. | 2309 // Only replay binding of arguments object if it wasn't removed from graph. |
2310 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2310 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2311 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2311 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2312 } | 2312 } |
2313 inner->BindContext(instr->closure_context()); | 2313 inner->BindContext(instr->closure_context()); |
2314 inner->set_entry(instr); | 2314 inner->set_entry(instr); |
2315 current_block_->UpdateEnvironment(inner); | 2315 current_block_->UpdateEnvironment(inner); |
2316 chunk_->AddInlinedFunction(instr->shared()); | 2316 |
2317 return NULL; | 2317 return NULL; |
2318 } | 2318 } |
2319 | 2319 |
2320 | 2320 |
2321 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2321 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2322 LInstruction* pop = NULL; | 2322 LInstruction* pop = NULL; |
2323 | 2323 |
2324 HEnvironment* env = current_block_->last_environment(); | 2324 HEnvironment* env = current_block_->last_environment(); |
2325 | 2325 |
2326 if (env->entry()->arguments_pushed()) { | 2326 if (env->entry()->arguments_pushed()) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2362 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2363 LOperand* object = UseRegister(instr->object()); | 2363 LOperand* object = UseRegister(instr->object()); |
2364 LOperand* index = UseTempRegister(instr->index()); | 2364 LOperand* index = UseTempRegister(instr->index()); |
2365 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2365 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
2366 LInstruction* result = DefineSameAsFirst(load); | 2366 LInstruction* result = DefineSameAsFirst(load); |
2367 return AssignPointerMap(result); | 2367 return AssignPointerMap(result); |
2368 } | 2368 } |
2369 | 2369 |
2370 } // namespace internal | 2370 } // namespace internal |
2371 } // namespace v8 | 2371 } // namespace v8 |
OLD | NEW |