| 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 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2016 return DefineAsRegister( | 2016 return DefineAsRegister( |
| 2017 new(zone()) LInteger32ToDouble(Use(instr->value()))); | 2017 new(zone()) LInteger32ToDouble(Use(instr->value()))); |
| 2018 } | 2018 } |
| 2019 } | 2019 } |
| 2020 } | 2020 } |
| 2021 UNREACHABLE(); | 2021 UNREACHABLE(); |
| 2022 return NULL; | 2022 return NULL; |
| 2023 } | 2023 } |
| 2024 | 2024 |
| 2025 | 2025 |
| 2026 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 2026 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
| 2027 LOperand* value = UseRegisterAtStart(instr->value()); | 2027 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2028 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 2028 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
| 2029 } | 2029 } |
| 2030 | 2030 |
| 2031 | 2031 |
| 2032 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2032 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| 2033 LOperand* value = UseRegisterAtStart(instr->value()); | 2033 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2034 LInstruction* result = new(zone()) LCheckInstanceType(value); | 2034 LInstruction* result = new(zone()) LCheckInstanceType(value); |
| 2035 return AssignEnvironment(result); | 2035 return AssignEnvironment(result); |
| 2036 } | 2036 } |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2651 | 2651 |
| 2652 | 2652 |
| 2653 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2653 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2654 LOperand* object = UseRegister(instr->object()); | 2654 LOperand* object = UseRegister(instr->object()); |
| 2655 LOperand* index = UseRegister(instr->index()); | 2655 LOperand* index = UseRegister(instr->index()); |
| 2656 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2656 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2657 } | 2657 } |
| 2658 | 2658 |
| 2659 | 2659 |
| 2660 } } // namespace v8::internal | 2660 } } // namespace v8::internal |
| OLD | NEW |