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 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 return NULL; | 2063 return NULL; |
2064 } | 2064 } |
2065 | 2065 |
2066 | 2066 |
2067 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 2067 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { |
2068 LOperand* value = UseAtStart(instr->value()); | 2068 LOperand* value = UseAtStart(instr->value()); |
2069 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 2069 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
2070 } | 2070 } |
2071 | 2071 |
2072 | 2072 |
| 2073 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 2074 LOperand* value = UseAtStart(instr->value()); |
| 2075 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 2076 } |
| 2077 |
| 2078 |
| 2079 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { |
| 2080 return new(zone()) |
| 2081 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); |
| 2082 } |
| 2083 |
| 2084 |
2073 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2085 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
2074 LOperand* value = UseRegisterAtStart(instr->value()); | 2086 LOperand* value = UseRegisterAtStart(instr->value()); |
2075 LOperand* temp = TempRegister(); | 2087 LOperand* temp = TempRegister(); |
2076 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp); | 2088 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp); |
2077 return AssignEnvironment(result); | 2089 return AssignEnvironment(result); |
2078 } | 2090 } |
2079 | 2091 |
2080 | 2092 |
2081 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 2093 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
2082 LUnallocated* temp = TempRegister(); | 2094 LUnallocated* temp = TempRegister(); |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2826 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2815 LOperand* object = UseRegister(instr->object()); | 2827 LOperand* object = UseRegister(instr->object()); |
2816 LOperand* index = UseTempRegister(instr->index()); | 2828 LOperand* index = UseTempRegister(instr->index()); |
2817 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2829 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2818 } | 2830 } |
2819 | 2831 |
2820 | 2832 |
2821 } } // namespace v8::internal | 2833 } } // namespace v8::internal |
2822 | 2834 |
2823 #endif // V8_TARGET_ARCH_IA32 | 2835 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |