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 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 2013 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
2014 } | 2014 } |
2015 | 2015 |
2016 | 2016 |
2017 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 2017 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
2018 LOperand* value = UseRegisterAtStart(instr->value()); | 2018 LOperand* value = UseRegisterAtStart(instr->value()); |
2019 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 2019 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
2020 } | 2020 } |
2021 | 2021 |
2022 | 2022 |
2023 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { | |
2024 return new(zone()) | |
2025 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); | |
2026 } | |
2027 | |
2028 | |
2029 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2023 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
2030 LOperand* value = UseRegisterAtStart(instr->value()); | 2024 LOperand* value = UseRegisterAtStart(instr->value()); |
2031 LInstruction* result = new(zone()) LCheckInstanceType(value); | 2025 LInstruction* result = new(zone()) LCheckInstanceType(value); |
2032 return AssignEnvironment(result); | 2026 return AssignEnvironment(result); |
2033 } | 2027 } |
2034 | 2028 |
2035 | 2029 |
2036 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { | 2030 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { |
2037 LOperand* value = UseRegisterAtStart(instr->value()); | 2031 LOperand* value = UseRegisterAtStart(instr->value()); |
2038 return AssignEnvironment(new(zone()) LCheckValue(value)); | 2032 return AssignEnvironment(new(zone()) LCheckValue(value)); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 | 2598 |
2605 | 2599 |
2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2607 LOperand* object = UseRegister(instr->object()); | 2601 LOperand* object = UseRegister(instr->object()); |
2608 LOperand* index = UseRegister(instr->index()); | 2602 LOperand* index = UseRegister(instr->index()); |
2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2603 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2610 } | 2604 } |
2611 | 2605 |
2612 | 2606 |
2613 } } // namespace v8::internal | 2607 } } // namespace v8::internal |
OLD | NEW |