| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const char* LArithmeticT::Mnemonic() const { | 170 const char* LArithmeticT::Mnemonic() const { |
| 171 switch (op()) { | 171 switch (op()) { |
| 172 case Token::ADD: return "add-t"; | 172 case Token::ADD: return "add-t"; |
| 173 case Token::SUB: return "sub-t"; | 173 case Token::SUB: return "sub-t"; |
| 174 case Token::MUL: return "mul-t"; | 174 case Token::MUL: return "mul-t"; |
| 175 case Token::MOD: return "mod-t"; | 175 case Token::MOD: return "mod-t"; |
| 176 case Token::DIV: return "div-t"; | 176 case Token::DIV: return "div-t"; |
| 177 case Token::BIT_AND: return "bit-and-t"; | 177 case Token::BIT_AND: return "bit-and-t"; |
| 178 case Token::BIT_OR: return "bit-or-t"; | 178 case Token::BIT_OR: return "bit-or-t"; |
| 179 case Token::BIT_XOR: return "bit-xor-t"; | 179 case Token::BIT_XOR: return "bit-xor-t"; |
| 180 case Token::ROR: return "ror-t"; |
| 180 case Token::SHL: return "shl-t"; | 181 case Token::SHL: return "shl-t"; |
| 181 case Token::SAR: return "sar-t"; | 182 case Token::SAR: return "sar-t"; |
| 182 case Token::SHR: return "shr-t"; | 183 case Token::SHR: return "shr-t"; |
| 183 default: | 184 default: |
| 184 UNREACHABLE(); | 185 UNREACHABLE(); |
| 185 return NULL; | 186 return NULL; |
| 186 } | 187 } |
| 187 } | 188 } |
| 188 | 189 |
| 189 | 190 |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 instr); | 1093 instr); |
| 1093 } | 1094 } |
| 1094 | 1095 |
| 1095 | 1096 |
| 1096 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1097 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1097 argument_count_ -= instr->argument_count(); | 1098 argument_count_ -= instr->argument_count(); |
| 1098 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, r0), instr); | 1099 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, r0), instr); |
| 1099 } | 1100 } |
| 1100 | 1101 |
| 1101 | 1102 |
| 1103 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| 1104 return DoShift(Token::ROR, instr); |
| 1105 } |
| 1106 |
| 1107 |
| 1102 LInstruction* LChunkBuilder::DoShr(HShr* instr) { | 1108 LInstruction* LChunkBuilder::DoShr(HShr* instr) { |
| 1103 return DoShift(Token::SHR, instr); | 1109 return DoShift(Token::SHR, instr); |
| 1104 } | 1110 } |
| 1105 | 1111 |
| 1106 | 1112 |
| 1107 LInstruction* LChunkBuilder::DoSar(HSar* instr) { | 1113 LInstruction* LChunkBuilder::DoSar(HSar* instr) { |
| 1108 return DoShift(Token::SAR, instr); | 1114 return DoShift(Token::SAR, instr); |
| 1109 } | 1115 } |
| 1110 | 1116 |
| 1111 | 1117 |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2266 | 2272 |
| 2267 | 2273 |
| 2268 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2274 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2269 LOperand* object = UseRegister(instr->object()); | 2275 LOperand* object = UseRegister(instr->object()); |
| 2270 LOperand* index = UseRegister(instr->index()); | 2276 LOperand* index = UseRegister(instr->index()); |
| 2271 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2277 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2272 } | 2278 } |
| 2273 | 2279 |
| 2274 | 2280 |
| 2275 } } // namespace v8::internal | 2281 } } // namespace v8::internal |
| OLD | NEW |