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 2544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2555 LOperand* value = UseRegisterAtStart(instr->value()); | 2555 LOperand* value = UseRegisterAtStart(instr->value()); |
2556 LOperand* map = UseRegister(instr->map()); | 2556 LOperand* map = UseRegister(instr->map()); |
2557 LOperand* temp = TempRegister(); | 2557 LOperand* temp = TempRegister(); |
2558 return AssignEnvironment(new(zone()) LCheckMapValue(value, map, temp)); | 2558 return AssignEnvironment(new(zone()) LCheckMapValue(value, map, temp)); |
2559 } | 2559 } |
2560 | 2560 |
2561 | 2561 |
2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2563 LOperand* object = UseRegisterAtStart(instr->object()); | 2563 LOperand* object = UseRegisterAtStart(instr->object()); |
2564 LOperand* index = UseRegister(instr->index()); | 2564 LOperand* index = UseRegister(instr->index()); |
2565 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2565 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2566 LInstruction* result = DefineSameAsFirst(load); | |
2567 return AssignPointerMap(result); | |
2568 } | 2566 } |
2569 | 2567 |
2570 | 2568 |
2571 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2569 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2572 LOperand* receiver = UseRegister(instr->receiver()); | 2570 LOperand* receiver = UseRegister(instr->receiver()); |
2573 LOperand* function = UseRegister(instr->function()); | 2571 LOperand* function = UseRegister(instr->function()); |
2574 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2572 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2575 return AssignEnvironment(DefineAsRegister(result)); | 2573 return AssignEnvironment(DefineAsRegister(result)); |
2576 } | 2574 } |
2577 | 2575 |
2578 | 2576 |
2579 } } // namespace v8::internal | 2577 } } // namespace v8::internal |
OLD | NEW |