| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 V(NumberUntagD) \ | 142 V(NumberUntagD) \ |
| 143 V(ObjectLiteral) \ | 143 V(ObjectLiteral) \ |
| 144 V(OsrEntry) \ | 144 V(OsrEntry) \ |
| 145 V(OuterContext) \ | 145 V(OuterContext) \ |
| 146 V(Parameter) \ | 146 V(Parameter) \ |
| 147 V(Power) \ | 147 V(Power) \ |
| 148 V(PushArgument) \ | 148 V(PushArgument) \ |
| 149 V(Random) \ | 149 V(Random) \ |
| 150 V(RegExpLiteral) \ | 150 V(RegExpLiteral) \ |
| 151 V(Return) \ | 151 V(Return) \ |
| 152 V(SeqStringSetChar) \ |
| 152 V(ShiftI) \ | 153 V(ShiftI) \ |
| 153 V(SmiTag) \ | 154 V(SmiTag) \ |
| 154 V(SmiUntag) \ | 155 V(SmiUntag) \ |
| 155 V(StackCheck) \ | 156 V(StackCheck) \ |
| 156 V(StoreContextSlot) \ | 157 V(StoreContextSlot) \ |
| 157 V(StoreGlobalCell) \ | 158 V(StoreGlobalCell) \ |
| 158 V(StoreGlobalGeneric) \ | 159 V(StoreGlobalGeneric) \ |
| 159 V(StoreKeyed) \ | 160 V(StoreKeyed) \ |
| 160 V(StoreKeyedGeneric) \ | 161 V(StoreKeyedGeneric) \ |
| 161 V(StoreNamedField) \ | 162 V(StoreNamedField) \ |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 Smi* index() const { return index_; } | 1149 Smi* index() const { return index_; } |
| 1149 | 1150 |
| 1150 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") | 1151 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") |
| 1151 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 1152 DECLARE_HYDROGEN_ACCESSOR(ValueOf) |
| 1152 | 1153 |
| 1153 private: | 1154 private: |
| 1154 Smi* index_; | 1155 Smi* index_; |
| 1155 }; | 1156 }; |
| 1156 | 1157 |
| 1157 | 1158 |
| 1159 class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> { |
| 1160 public: |
| 1161 LSeqStringSetChar(bool is_one_byte, |
| 1162 LOperand* string, |
| 1163 LOperand* index, |
| 1164 LOperand* value) : is_one_byte_(is_one_byte) { |
| 1165 inputs_[0] = string; |
| 1166 inputs_[1] = index; |
| 1167 inputs_[2] = value; |
| 1168 } |
| 1169 |
| 1170 LOperand* string() { return inputs_[0]; } |
| 1171 LOperand* index() { return inputs_[1]; } |
| 1172 LOperand* value() { return inputs_[2]; } |
| 1173 bool is_one_byte() { return is_one_byte_; } |
| 1174 |
| 1175 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1176 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1177 |
| 1178 private: |
| 1179 bool is_one_byte_; |
| 1180 }; |
| 1181 |
| 1182 |
| 1158 class LThrow: public LTemplateInstruction<0, 1, 0> { | 1183 class LThrow: public LTemplateInstruction<0, 1, 0> { |
| 1159 public: | 1184 public: |
| 1160 explicit LThrow(LOperand* value) { | 1185 explicit LThrow(LOperand* value) { |
| 1161 inputs_[0] = value; | 1186 inputs_[0] = value; |
| 1162 } | 1187 } |
| 1163 | 1188 |
| 1164 LOperand* value() { return inputs_[0]; } | 1189 LOperand* value() { return inputs_[0]; } |
| 1165 | 1190 |
| 1166 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | 1191 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") |
| 1167 }; | 1192 }; |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2506 | 2531 |
| 2507 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2532 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2508 }; | 2533 }; |
| 2509 | 2534 |
| 2510 #undef DECLARE_HYDROGEN_ACCESSOR | 2535 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2511 #undef DECLARE_CONCRETE_INSTRUCTION | 2536 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2512 | 2537 |
| 2513 } } // namespace v8::int | 2538 } } // namespace v8::int |
| 2514 | 2539 |
| 2515 #endif // V8_X64_LITHIUM_X64_H_ | 2540 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |