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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2289 HEnvironment* inner = outer->CopyForInlining( | 2289 HEnvironment* inner = outer->CopyForInlining( |
2290 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2290 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2291 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 2291 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2292 // Only replay binding of arguments object if it wasn't removed from graph. | 2292 // Only replay binding of arguments object if it wasn't removed from graph. |
2293 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2293 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2294 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2294 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2295 } | 2295 } |
2296 inner->BindContext(instr->closure_context()); | 2296 inner->BindContext(instr->closure_context()); |
2297 inner->set_entry(instr); | 2297 inner->set_entry(instr); |
2298 current_block_->UpdateEnvironment(inner); | 2298 current_block_->UpdateEnvironment(inner); |
2299 chunk_->AddInlinedFunction(instr->shared()); | 2299 |
2300 return NULL; | 2300 return NULL; |
2301 } | 2301 } |
2302 | 2302 |
2303 | 2303 |
2304 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2304 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2305 LInstruction* pop = NULL; | 2305 LInstruction* pop = NULL; |
2306 | 2306 |
2307 HEnvironment* env = current_block_->last_environment(); | 2307 HEnvironment* env = current_block_->last_environment(); |
2308 | 2308 |
2309 if (env->entry()->arguments_pushed()) { | 2309 if (env->entry()->arguments_pushed()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 LOperand* index = UseTempRegister(instr->index()); | 2346 LOperand* index = UseTempRegister(instr->index()); |
2347 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2347 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2348 LInstruction* result = DefineSameAsFirst(load); | 2348 LInstruction* result = DefineSameAsFirst(load); |
2349 return AssignPointerMap(result); | 2349 return AssignPointerMap(result); |
2350 } | 2350 } |
2351 | 2351 |
2352 } // namespace internal | 2352 } // namespace internal |
2353 } // namespace v8 | 2353 } // namespace v8 |
2354 | 2354 |
2355 #endif // V8_TARGET_ARCH_MIPS64 | 2355 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |