| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 } | 2504 } |
| 2505 | 2505 |
| 2506 | 2506 |
| 2507 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2507 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 2508 HEnvironment* outer = current_block_->last_environment(); | 2508 HEnvironment* outer = current_block_->last_environment(); |
| 2509 HConstant* undefined = graph()->GetConstantUndefined(); | 2509 HConstant* undefined = graph()->GetConstantUndefined(); |
| 2510 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2510 HEnvironment* inner = outer->CopyForInlining(instr->closure(), |
| 2511 instr->arguments_count(), | 2511 instr->arguments_count(), |
| 2512 instr->function(), | 2512 instr->function(), |
| 2513 undefined, | 2513 undefined, |
| 2514 instr->inlining_kind(), | 2514 instr->inlining_kind()); |
| 2515 instr->undefined_receiver()); | |
| 2516 // Only replay binding of arguments object if it wasn't removed from graph. | 2515 // Only replay binding of arguments object if it wasn't removed from graph. |
| 2517 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2516 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
| 2518 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2517 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| 2519 } | 2518 } |
| 2520 inner->set_entry(instr); | 2519 inner->set_entry(instr); |
| 2521 current_block_->UpdateEnvironment(inner); | 2520 current_block_->UpdateEnvironment(inner); |
| 2522 chunk_->AddInlinedClosure(instr->closure()); | 2521 chunk_->AddInlinedClosure(instr->closure()); |
| 2523 return NULL; | 2522 return NULL; |
| 2524 } | 2523 } |
| 2525 | 2524 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 } | 2563 } |
| 2565 | 2564 |
| 2566 | 2565 |
| 2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2566 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2568 LOperand* object = UseRegister(instr->object()); | 2567 LOperand* object = UseRegister(instr->object()); |
| 2569 LOperand* index = UseRegister(instr->index()); | 2568 LOperand* index = UseRegister(instr->index()); |
| 2570 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2569 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2571 } | 2570 } |
| 2572 | 2571 |
| 2573 } } // namespace v8::internal | 2572 } } // namespace v8::internal |
| OLD | NEW |