| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 | 1442 |
| 1443 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { | 1443 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { |
| 1444 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); | 1444 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 | 1447 |
| 1448 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 1448 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 1449 HEnvironment* outer = current_block_->last_environment(); | 1449 HEnvironment* outer = current_block_->last_environment(); |
| 1450 outer->set_ast_id(instr->ReturnId()); |
| 1450 HConstant* undefined = graph()->GetConstantUndefined(); | 1451 HConstant* undefined = graph()->GetConstantUndefined(); |
| 1451 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 1452 HEnvironment* inner = outer->CopyForInlining(instr->closure(), |
| 1452 instr->arguments_count(), | 1453 instr->arguments_count(), |
| 1453 instr->function(), | 1454 instr->function(), |
| 1454 undefined, | 1455 undefined, |
| 1455 instr->inlining_kind()); | 1456 instr->inlining_kind()); |
| 1456 // Only replay binding of arguments object if it wasn't removed from graph. | 1457 // Only replay binding of arguments object if it wasn't removed from graph. |
| 1457 if ((instr->arguments_var() != NULL) && | 1458 if ((instr->arguments_var() != NULL) && |
| 1458 instr->arguments_object()->IsLinked()) { | 1459 instr->arguments_object()->IsLinked()) { |
| 1459 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 1460 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 | 2568 |
| 2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2569 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2569 LOperand* receiver = UseRegister(instr->receiver()); | 2570 LOperand* receiver = UseRegister(instr->receiver()); |
| 2570 LOperand* function = UseRegister(instr->function()); | 2571 LOperand* function = UseRegister(instr->function()); |
| 2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2572 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2572 return AssignEnvironment(DefineAsRegister(result)); | 2573 return AssignEnvironment(DefineAsRegister(result)); |
| 2573 } | 2574 } |
| 2574 | 2575 |
| 2575 | 2576 |
| 2576 } } // namespace v8::internal | 2577 } } // namespace v8::internal |
| OLD | NEW |