OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 V(NumberTagD) \ | 134 V(NumberTagD) \ |
135 V(NumberTagI) \ | 135 V(NumberTagI) \ |
136 V(NumberUntagD) \ | 136 V(NumberUntagD) \ |
137 V(ObjectLiteralFast) \ | 137 V(ObjectLiteralFast) \ |
138 V(ObjectLiteralGeneric) \ | 138 V(ObjectLiteralGeneric) \ |
139 V(OsrEntry) \ | 139 V(OsrEntry) \ |
140 V(OuterContext) \ | 140 V(OuterContext) \ |
141 V(Parameter) \ | 141 V(Parameter) \ |
142 V(Power) \ | 142 V(Power) \ |
143 V(PushArgument) \ | 143 V(PushArgument) \ |
| 144 V(Random) \ |
144 V(RegExpLiteral) \ | 145 V(RegExpLiteral) \ |
145 V(Return) \ | 146 V(Return) \ |
146 V(ShiftI) \ | 147 V(ShiftI) \ |
147 V(SmiTag) \ | 148 V(SmiTag) \ |
148 V(SmiUntag) \ | 149 V(SmiUntag) \ |
149 V(StackCheck) \ | 150 V(StackCheck) \ |
150 V(StoreContextSlot) \ | 151 V(StoreContextSlot) \ |
151 V(StoreGlobalCell) \ | 152 V(StoreGlobalCell) \ |
152 V(StoreGlobalGeneric) \ | 153 V(StoreGlobalGeneric) \ |
153 V(StoreKeyedFastDoubleElement) \ | 154 V(StoreKeyedFastDoubleElement) \ |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 LPower(LOperand* left, LOperand* right) { | 1018 LPower(LOperand* left, LOperand* right) { |
1018 inputs_[0] = left; | 1019 inputs_[0] = left; |
1019 inputs_[1] = right; | 1020 inputs_[1] = right; |
1020 } | 1021 } |
1021 | 1022 |
1022 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1023 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1023 DECLARE_HYDROGEN_ACCESSOR(Power) | 1024 DECLARE_HYDROGEN_ACCESSOR(Power) |
1024 }; | 1025 }; |
1025 | 1026 |
1026 | 1027 |
| 1028 class LRandom: public LTemplateInstruction<1, 1, 0> { |
| 1029 public: |
| 1030 explicit LRandom(LOperand* global_object) { |
| 1031 inputs_[0] = global_object; |
| 1032 } |
| 1033 |
| 1034 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1035 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1036 }; |
| 1037 |
| 1038 |
1027 class LArithmeticD: public LTemplateInstruction<1, 2, 0> { | 1039 class LArithmeticD: public LTemplateInstruction<1, 2, 0> { |
1028 public: | 1040 public: |
1029 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1041 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1030 : op_(op) { | 1042 : op_(op) { |
1031 inputs_[0] = left; | 1043 inputs_[0] = left; |
1032 inputs_[1] = right; | 1044 inputs_[1] = right; |
1033 } | 1045 } |
1034 | 1046 |
1035 Token::Value op() const { return op_; } | 1047 Token::Value op() const { return op_; } |
1036 | 1048 |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 | 2257 |
2246 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2258 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2247 }; | 2259 }; |
2248 | 2260 |
2249 #undef DECLARE_HYDROGEN_ACCESSOR | 2261 #undef DECLARE_HYDROGEN_ACCESSOR |
2250 #undef DECLARE_CONCRETE_INSTRUCTION | 2262 #undef DECLARE_CONCRETE_INSTRUCTION |
2251 | 2263 |
2252 } } // namespace v8::int | 2264 } } // namespace v8::int |
2253 | 2265 |
2254 #endif // V8_X64_LITHIUM_X64_H_ | 2266 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |