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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2543 instr->function(), | 2543 instr->function(), |
2544 undefined, | 2544 undefined, |
2545 instr->inlining_kind()); | 2545 instr->inlining_kind()); |
2546 // Only replay binding of arguments object if it wasn't removed from graph. | 2546 // Only replay binding of arguments object if it wasn't removed from graph. |
2547 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2547 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2548 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2548 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2549 } | 2549 } |
2550 inner->BindContext(instr->closure_context()); | 2550 inner->BindContext(instr->closure_context()); |
2551 inner->set_entry(instr); | 2551 inner->set_entry(instr); |
2552 current_block_->UpdateEnvironment(inner); | 2552 current_block_->UpdateEnvironment(inner); |
2553 chunk_->AddInlinedClosure(instr->closure()); | 2553 chunk_->AddInlinedFunction(instr->shared()); |
2554 return NULL; | 2554 return NULL; |
2555 } | 2555 } |
2556 | 2556 |
2557 | 2557 |
2558 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2558 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2559 LInstruction* pop = NULL; | 2559 LInstruction* pop = NULL; |
2560 | 2560 |
2561 HEnvironment* env = current_block_->last_environment(); | 2561 HEnvironment* env = current_block_->last_environment(); |
2562 | 2562 |
2563 if (env->entry()->arguments_pushed()) { | 2563 if (env->entry()->arguments_pushed()) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2616 LOperand* function = UseRegisterAtStart(instr->function()); | 2616 LOperand* function = UseRegisterAtStart(instr->function()); |
2617 LAllocateBlockContext* result = | 2617 LAllocateBlockContext* result = |
2618 new(zone()) LAllocateBlockContext(context, function); | 2618 new(zone()) LAllocateBlockContext(context, function); |
2619 return MarkAsCall(DefineFixed(result, cp), instr); | 2619 return MarkAsCall(DefineFixed(result, cp), instr); |
2620 } | 2620 } |
2621 | 2621 |
2622 | 2622 |
2623 } } // namespace v8::internal | 2623 } } // namespace v8::internal |
2624 | 2624 |
2625 #endif // V8_TARGET_ARCH_MIPS64 | 2625 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |