| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::SHL: return "shl-t"; | 180 case Token::SHL: return "shl-t"; |
| 181 case Token::SAR: return "sar-t"; | 181 case Token::SAR: return "sar-t"; |
| 182 case Token::SHR: return "shr-t"; | 182 case Token::SHR: return "shr-t"; |
| 183 case Token::ROR: return "ror-t"; |
| 183 default: | 184 default: |
| 184 UNREACHABLE(); | 185 UNREACHABLE(); |
| 185 return NULL; | 186 return NULL; |
| 186 } | 187 } |
| 187 } | 188 } |
| 188 | 189 |
| 189 | 190 |
| 190 void LGoto::PrintDataTo(StringStream* stream) { | 191 void LGoto::PrintDataTo(StringStream* stream) { |
| 191 stream->Add("B%d", block_id()); | 192 stream->Add("B%d", block_id()); |
| 192 } | 193 } |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 LInstruction* LChunkBuilder::DoSar(HSar* instr) { | 1116 LInstruction* LChunkBuilder::DoSar(HSar* instr) { |
| 1116 return DoShift(Token::SAR, instr); | 1117 return DoShift(Token::SAR, instr); |
| 1117 } | 1118 } |
| 1118 | 1119 |
| 1119 | 1120 |
| 1120 LInstruction* LChunkBuilder::DoShl(HShl* instr) { | 1121 LInstruction* LChunkBuilder::DoShl(HShl* instr) { |
| 1121 return DoShift(Token::SHL, instr); | 1122 return DoShift(Token::SHL, instr); |
| 1122 } | 1123 } |
| 1123 | 1124 |
| 1124 | 1125 |
| 1126 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| 1127 return DoShift(Token::ROR, instr); |
| 1128 } |
| 1129 |
| 1130 |
| 1125 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { | 1131 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { |
| 1126 if (instr->representation().IsInteger32()) { | 1132 if (instr->representation().IsInteger32()) { |
| 1127 ASSERT(instr->left()->representation().IsInteger32()); | 1133 ASSERT(instr->left()->representation().IsInteger32()); |
| 1128 ASSERT(instr->right()->representation().IsInteger32()); | 1134 ASSERT(instr->right()->representation().IsInteger32()); |
| 1129 | 1135 |
| 1130 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand()); | 1136 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand()); |
| 1131 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand()); | 1137 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand()); |
| 1132 return DefineAsRegister(new(zone()) LBitI(left, right)); | 1138 return DefineAsRegister(new(zone()) LBitI(left, right)); |
| 1133 } else { | 1139 } else { |
| 1134 ASSERT(instr->representation().IsTagged()); | 1140 ASSERT(instr->representation().IsTagged()); |
| (...skipping 1175 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 |