| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 V(NumberUntagD) \ | 141 V(NumberUntagD) \ |
| 142 V(ObjectLiteral) \ | 142 V(ObjectLiteral) \ |
| 143 V(OsrEntry) \ | 143 V(OsrEntry) \ |
| 144 V(OuterContext) \ | 144 V(OuterContext) \ |
| 145 V(Parameter) \ | 145 V(Parameter) \ |
| 146 V(Power) \ | 146 V(Power) \ |
| 147 V(PushArgument) \ | 147 V(PushArgument) \ |
| 148 V(Random) \ | 148 V(Random) \ |
| 149 V(RegExpLiteral) \ | 149 V(RegExpLiteral) \ |
| 150 V(Return) \ | 150 V(Return) \ |
| 151 V(SeqStringSetChar) \ |
| 151 V(ShiftI) \ | 152 V(ShiftI) \ |
| 152 V(SmiTag) \ | 153 V(SmiTag) \ |
| 153 V(SmiUntag) \ | 154 V(SmiUntag) \ |
| 154 V(StackCheck) \ | 155 V(StackCheck) \ |
| 155 V(StoreContextSlot) \ | 156 V(StoreContextSlot) \ |
| 156 V(StoreGlobalCell) \ | 157 V(StoreGlobalCell) \ |
| 157 V(StoreGlobalGeneric) \ | 158 V(StoreGlobalGeneric) \ |
| 158 V(StoreKeyed) \ | 159 V(StoreKeyed) \ |
| 159 V(StoreKeyedGeneric) \ | 160 V(StoreKeyedGeneric) \ |
| 160 V(StoreNamedField) \ | 161 V(StoreNamedField) \ |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 Smi* index() const { return index_; } | 1137 Smi* index() const { return index_; } |
| 1137 | 1138 |
| 1138 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") | 1139 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") |
| 1139 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 1140 DECLARE_HYDROGEN_ACCESSOR(ValueOf) |
| 1140 | 1141 |
| 1141 private: | 1142 private: |
| 1142 Smi* index_; | 1143 Smi* index_; |
| 1143 }; | 1144 }; |
| 1144 | 1145 |
| 1145 | 1146 |
| 1147 class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> { |
| 1148 public: |
| 1149 LSeqStringSetChar(String::Encoding encoding, |
| 1150 LOperand* string, |
| 1151 LOperand* index, |
| 1152 LOperand* value) : encoding_(encoding) { |
| 1153 inputs_[0] = string; |
| 1154 inputs_[1] = index; |
| 1155 inputs_[2] = value; |
| 1156 } |
| 1157 |
| 1158 String::Encoding encoding() { return encoding_; } |
| 1159 LOperand* string() { return inputs_[0]; } |
| 1160 LOperand* index() { return inputs_[1]; } |
| 1161 LOperand* value() { return inputs_[2]; } |
| 1162 |
| 1163 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1164 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1165 |
| 1166 private: |
| 1167 String::Encoding encoding_; |
| 1168 }; |
| 1169 |
| 1170 |
| 1146 class LThrow: public LTemplateInstruction<0, 1, 0> { | 1171 class LThrow: public LTemplateInstruction<0, 1, 0> { |
| 1147 public: | 1172 public: |
| 1148 explicit LThrow(LOperand* value) { | 1173 explicit LThrow(LOperand* value) { |
| 1149 inputs_[0] = value; | 1174 inputs_[0] = value; |
| 1150 } | 1175 } |
| 1151 | 1176 |
| 1152 LOperand* value() { return inputs_[0]; } | 1177 LOperand* value() { return inputs_[0]; } |
| 1153 | 1178 |
| 1154 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | 1179 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") |
| 1155 }; | 1180 }; |
| (...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2527 | 2552 |
| 2528 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2553 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2529 }; | 2554 }; |
| 2530 | 2555 |
| 2531 #undef DECLARE_HYDROGEN_ACCESSOR | 2556 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2532 #undef DECLARE_CONCRETE_INSTRUCTION | 2557 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2533 | 2558 |
| 2534 } } // namespace v8::internal | 2559 } } // namespace v8::internal |
| 2535 | 2560 |
| 2536 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2561 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |