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()); | 2294 |
vogelheim
2016/11/07 17:53:27
[Here, and in pretty much all src/crankshaft/*/lit
| |
2295 return NULL; | 2295 return NULL; |
2296 } | 2296 } |
2297 | 2297 |
2298 | 2298 |
2299 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2299 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2300 LInstruction* pop = NULL; | 2300 LInstruction* pop = NULL; |
2301 | 2301 |
2302 HEnvironment* env = current_block_->last_environment(); | 2302 HEnvironment* env = current_block_->last_environment(); |
2303 | 2303 |
2304 if (env->entry()->arguments_pushed()) { | 2304 if (env->entry()->arguments_pushed()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2341 LOperand* index = UseTempRegister(instr->index()); | 2341 LOperand* index = UseTempRegister(instr->index()); |
2342 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2342 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2343 LInstruction* result = DefineSameAsFirst(load); | 2343 LInstruction* result = DefineSameAsFirst(load); |
2344 return AssignPointerMap(result); | 2344 return AssignPointerMap(result); |
2345 } | 2345 } |
2346 | 2346 |
2347 } // namespace internal | 2347 } // namespace internal |
2348 } // namespace v8 | 2348 } // namespace v8 |
2349 | 2349 |
2350 #endif // V8_TARGET_ARCH_MIPS | 2350 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |