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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2337 HEnvironment* inner = outer->CopyForInlining( | 2337 HEnvironment* inner = outer->CopyForInlining( |
2338 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2338 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2339 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 2339 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2340 // Only replay binding of arguments object if it wasn't removed from graph. | 2340 // Only replay binding of arguments object if it wasn't removed from graph. |
2341 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2341 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2342 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2342 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2343 } | 2343 } |
2344 inner->BindContext(instr->closure_context()); | 2344 inner->BindContext(instr->closure_context()); |
2345 inner->set_entry(instr); | 2345 inner->set_entry(instr); |
2346 current_block_->UpdateEnvironment(inner); | 2346 current_block_->UpdateEnvironment(inner); |
2347 chunk_->AddInlinedFunction(instr->shared()); | 2347 |
2348 return NULL; | 2348 return NULL; |
2349 } | 2349 } |
2350 | 2350 |
2351 | 2351 |
2352 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2352 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2353 LInstruction* pop = NULL; | 2353 LInstruction* pop = NULL; |
2354 | 2354 |
2355 HEnvironment* env = current_block_->last_environment(); | 2355 HEnvironment* env = current_block_->last_environment(); |
2356 | 2356 |
2357 if (env->entry()->arguments_pushed()) { | 2357 if (env->entry()->arguments_pushed()) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2392 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2392 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2393 LOperand* object = UseRegister(instr->object()); | 2393 LOperand* object = UseRegister(instr->object()); |
2394 LOperand* index = UseTempRegister(instr->index()); | 2394 LOperand* index = UseTempRegister(instr->index()); |
2395 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2395 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2396 LInstruction* result = DefineSameAsFirst(load); | 2396 LInstruction* result = DefineSameAsFirst(load); |
2397 return AssignPointerMap(result); | 2397 return AssignPointerMap(result); |
2398 } | 2398 } |
2399 | 2399 |
2400 } // namespace internal | 2400 } // namespace internal |
2401 } // namespace v8 | 2401 } // namespace v8 |
OLD | NEW |