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 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 return AssignEnvironment( | 2422 return AssignEnvironment( |
2423 AssignPointerMap(new(zone()) LStackCheck(context))); | 2423 AssignPointerMap(new(zone()) LStackCheck(context))); |
2424 } | 2424 } |
2425 } | 2425 } |
2426 | 2426 |
2427 | 2427 |
2428 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2428 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
2429 HEnvironment* outer = current_block_->last_environment(); | 2429 HEnvironment* outer = current_block_->last_environment(); |
2430 outer->set_ast_id(instr->ReturnId()); | 2430 outer->set_ast_id(instr->ReturnId()); |
2431 HConstant* undefined = graph()->GetConstantUndefined(); | 2431 HConstant* undefined = graph()->GetConstantUndefined(); |
2432 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2432 HEnvironment* inner = outer->CopyForInlining( |
2433 instr->arguments_count(), | 2433 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2434 instr->function(), | 2434 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2435 undefined, | |
2436 instr->inlining_kind()); | |
2437 // Only replay binding of arguments object if it wasn't removed from graph. | 2435 // Only replay binding of arguments object if it wasn't removed from graph. |
2438 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2436 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2439 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2437 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2440 } | 2438 } |
2441 inner->BindContext(instr->closure_context()); | 2439 inner->BindContext(instr->closure_context()); |
2442 inner->set_entry(instr); | 2440 inner->set_entry(instr); |
2443 current_block_->UpdateEnvironment(inner); | 2441 current_block_->UpdateEnvironment(inner); |
2444 chunk_->AddInlinedFunction(instr->shared()); | 2442 chunk_->AddInlinedFunction(instr->shared()); |
2445 return NULL; | 2443 return NULL; |
2446 } | 2444 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2498 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2496 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2499 LOperand* context = UseRegisterAtStart(instr->context()); | 2497 LOperand* context = UseRegisterAtStart(instr->context()); |
2500 return new(zone()) LStoreFrameContext(context); | 2498 return new(zone()) LStoreFrameContext(context); |
2501 } | 2499 } |
2502 | 2500 |
2503 | 2501 |
2504 } // namespace internal | 2502 } // namespace internal |
2505 } // namespace v8 | 2503 } // namespace v8 |
2506 | 2504 |
2507 #endif // V8_TARGET_ARCH_MIPS64 | 2505 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |