| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 const char* LArithmeticT::Mnemonic() const { | 172 const char* LArithmeticT::Mnemonic() const { |
| 173 switch (op()) { | 173 switch (op()) { |
| 174 case Token::ADD: return "add-t"; | 174 case Token::ADD: return "add-t"; |
| 175 case Token::SUB: return "sub-t"; | 175 case Token::SUB: return "sub-t"; |
| 176 case Token::MUL: return "mul-t"; | 176 case Token::MUL: return "mul-t"; |
| 177 case Token::MOD: return "mod-t"; | 177 case Token::MOD: return "mod-t"; |
| 178 case Token::DIV: return "div-t"; | 178 case Token::DIV: return "div-t"; |
| 179 case Token::BIT_AND: return "bit-and-t"; | 179 case Token::BIT_AND: return "bit-and-t"; |
| 180 case Token::BIT_OR: return "bit-or-t"; | 180 case Token::BIT_OR: return "bit-or-t"; |
| 181 case Token::BIT_XOR: return "bit-xor-t"; | 181 case Token::BIT_XOR: return "bit-xor-t"; |
| 182 case Token::ROR: return "ror-t"; |
| 182 case Token::SHL: return "sal-t"; | 183 case Token::SHL: return "sal-t"; |
| 183 case Token::SAR: return "sar-t"; | 184 case Token::SAR: return "sar-t"; |
| 184 case Token::SHR: return "shr-t"; | 185 case Token::SHR: return "shr-t"; |
| 185 default: | 186 default: |
| 186 UNREACHABLE(); | 187 UNREACHABLE(); |
| 187 return NULL; | 188 return NULL; |
| 188 } | 189 } |
| 189 } | 190 } |
| 190 | 191 |
| 191 | 192 |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 return MarkAsCall(DefineFixed(result, rax), instr); | 1094 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1094 } | 1095 } |
| 1095 | 1096 |
| 1096 | 1097 |
| 1097 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1098 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1098 argument_count_ -= instr->argument_count(); | 1099 argument_count_ -= instr->argument_count(); |
| 1099 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, rax), instr); | 1100 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime, rax), instr); |
| 1100 } | 1101 } |
| 1101 | 1102 |
| 1102 | 1103 |
| 1104 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| 1105 return DoShift(Token::ROR, instr); |
| 1106 } |
| 1107 |
| 1108 |
| 1103 LInstruction* LChunkBuilder::DoShr(HShr* instr) { | 1109 LInstruction* LChunkBuilder::DoShr(HShr* instr) { |
| 1104 return DoShift(Token::SHR, instr); | 1110 return DoShift(Token::SHR, instr); |
| 1105 } | 1111 } |
| 1106 | 1112 |
| 1107 | 1113 |
| 1108 LInstruction* LChunkBuilder::DoSar(HSar* instr) { | 1114 LInstruction* LChunkBuilder::DoSar(HSar* instr) { |
| 1109 return DoShift(Token::SAR, instr); | 1115 return DoShift(Token::SAR, instr); |
| 1110 } | 1116 } |
| 1111 | 1117 |
| 1112 | 1118 |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2253 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2259 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2254 LOperand* object = UseRegister(instr->object()); | 2260 LOperand* object = UseRegister(instr->object()); |
| 2255 LOperand* index = UseTempRegister(instr->index()); | 2261 LOperand* index = UseTempRegister(instr->index()); |
| 2256 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2262 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2257 } | 2263 } |
| 2258 | 2264 |
| 2259 | 2265 |
| 2260 } } // namespace v8::internal | 2266 } } // namespace v8::internal |
| 2261 | 2267 |
| 2262 #endif // V8_TARGET_ARCH_X64 | 2268 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |