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 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2025 return NULL; | 2025 return NULL; |
2026 } | 2026 } |
2027 | 2027 |
2028 | 2028 |
2029 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 2029 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { |
2030 LOperand* value = UseRegisterAtStart(instr->value()); | 2030 LOperand* value = UseRegisterAtStart(instr->value()); |
2031 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 2031 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
2032 } | 2032 } |
2033 | 2033 |
2034 | 2034 |
| 2035 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 2036 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2037 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 2038 } |
| 2039 |
| 2040 |
| 2041 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { |
| 2042 return new(zone()) |
| 2043 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); |
| 2044 } |
| 2045 |
| 2046 |
2035 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2047 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
2036 LOperand* value = UseRegisterAtStart(instr->value()); | 2048 LOperand* value = UseRegisterAtStart(instr->value()); |
2037 LInstruction* result = new(zone()) LCheckInstanceType(value); | 2049 LInstruction* result = new(zone()) LCheckInstanceType(value); |
2038 return AssignEnvironment(result); | 2050 return AssignEnvironment(result); |
2039 } | 2051 } |
2040 | 2052 |
2041 | 2053 |
2042 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 2054 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
2043 LUnallocated* temp1 = TempRegister(); | 2055 LUnallocated* temp1 = TempRegister(); |
2044 LOperand* temp2 = TempRegister(); | 2056 LOperand* temp2 = TempRegister(); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 | 2674 |
2663 | 2675 |
2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2676 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2665 LOperand* object = UseRegister(instr->object()); | 2677 LOperand* object = UseRegister(instr->object()); |
2666 LOperand* index = UseRegister(instr->index()); | 2678 LOperand* index = UseRegister(instr->index()); |
2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2679 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2668 } | 2680 } |
2669 | 2681 |
2670 | 2682 |
2671 } } // namespace v8::internal | 2683 } } // namespace v8::internal |
OLD | NEW |