| 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 "sll-t"; | 181 case Token::SHL: return "sll-t"; |
| 181 case Token::SAR: return "sra-t"; | 182 case Token::SAR: return "sra-t"; |
| 182 case Token::SHR: return "srl-t"; | 183 case Token::SHR: return "srl-t"; |
| 183 default: | 184 default: |
| 184 UNREACHABLE(); | 185 UNREACHABLE(); |
| 185 return NULL; | 186 return NULL; |
| 186 } | 187 } |
| 187 } | 188 } |
| 188 | 189 |
| 189 | 190 |
| (...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 | 2209 |
| 2209 | 2210 |
| 2210 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2211 LOperand* object = UseRegister(instr->object()); | 2212 LOperand* object = UseRegister(instr->object()); |
| 2212 LOperand* index = UseRegister(instr->index()); | 2213 LOperand* index = UseRegister(instr->index()); |
| 2213 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2214 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2214 } | 2215 } |
| 2215 | 2216 |
| 2216 | 2217 |
| 2217 } } // namespace v8::internal | 2218 } } // namespace v8::internal |
| OLD | NEW |