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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 instr); | 1101 instr); |
1101 } | 1102 } |
1102 | 1103 |
1103 | 1104 |
1104 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1105 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
1105 argument_count_ -= instr->argument_count(); | 1106 argument_count_ -= instr->argument_count(); |
1106 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, r0), instr); | 1107 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, r0), instr); |
1107 } | 1108 } |
1108 | 1109 |
1109 | 1110 |
| 1111 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| 1112 return DoShift(Token::ROR, instr); |
| 1113 } |
| 1114 |
| 1115 |
1110 LInstruction* LChunkBuilder::DoShr(HShr* instr) { | 1116 LInstruction* LChunkBuilder::DoShr(HShr* instr) { |
1111 return DoShift(Token::SHR, instr); | 1117 return DoShift(Token::SHR, instr); |
1112 } | 1118 } |
1113 | 1119 |
1114 | 1120 |
1115 LInstruction* LChunkBuilder::DoSar(HSar* instr) { | 1121 LInstruction* LChunkBuilder::DoSar(HSar* instr) { |
1116 return DoShift(Token::SAR, instr); | 1122 return DoShift(Token::SAR, instr); |
1117 } | 1123 } |
1118 | 1124 |
1119 | 1125 |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 | 2316 |
2311 | 2317 |
2312 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2318 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2313 LOperand* object = UseRegister(instr->object()); | 2319 LOperand* object = UseRegister(instr->object()); |
2314 LOperand* index = UseRegister(instr->index()); | 2320 LOperand* index = UseRegister(instr->index()); |
2315 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2321 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2316 } | 2322 } |
2317 | 2323 |
2318 | 2324 |
2319 } } // namespace v8::internal | 2325 } } // namespace v8::internal |
OLD | NEW |