| 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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 // deoptimization environment. | 973 // deoptimization environment. |
| 974 Representation rep = value->representation(); | 974 Representation rep = value->representation(); |
| 975 HType type = value->type(); | 975 HType type = value->type(); |
| 976 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) { | 976 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) { |
| 977 return AssignEnvironment(result); | 977 return AssignEnvironment(result); |
| 978 } | 978 } |
| 979 return result; | 979 return result; |
| 980 } | 980 } |
| 981 | 981 |
| 982 | 982 |
| 983 LInstruction* LChunkBuilder::DoBreak(HBreak* instr) { |
| 984 return new(zone()) LBreak(); |
| 985 } |
| 986 |
| 983 | 987 |
| 984 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { | 988 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
| 985 ASSERT(instr->value()->representation().IsTagged()); | 989 ASSERT(instr->value()->representation().IsTagged()); |
| 986 LOperand* value = UseRegisterAtStart(instr->value()); | 990 LOperand* value = UseRegisterAtStart(instr->value()); |
| 987 LOperand* temp = TempRegister(); | 991 LOperand* temp = TempRegister(); |
| 988 return new(zone()) LCmpMapAndBranch(value, temp); | 992 return new(zone()) LCmpMapAndBranch(value, temp); |
| 989 } | 993 } |
| 990 | 994 |
| 991 | 995 |
| 992 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { | 996 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 | 2608 |
| 2605 | 2609 |
| 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2610 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2607 LOperand* object = UseRegister(instr->object()); | 2611 LOperand* object = UseRegister(instr->object()); |
| 2608 LOperand* index = UseRegister(instr->index()); | 2612 LOperand* index = UseRegister(instr->index()); |
| 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2613 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2610 } | 2614 } |
| 2611 | 2615 |
| 2612 | 2616 |
| 2613 } } // namespace v8::internal | 2617 } } // namespace v8::internal |
| OLD | NEW |