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