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 116 matching lines...) Loading... |
128 V(MulI) \ | 128 V(MulI) \ |
129 V(NumberTagD) \ | 129 V(NumberTagD) \ |
130 V(NumberTagI) \ | 130 V(NumberTagI) \ |
131 V(NumberUntagD) \ | 131 V(NumberUntagD) \ |
132 V(ObjectLiteralFast) \ | 132 V(ObjectLiteralFast) \ |
133 V(ObjectLiteralGeneric) \ | 133 V(ObjectLiteralGeneric) \ |
134 V(OsrEntry) \ | 134 V(OsrEntry) \ |
135 V(OuterContext) \ | 135 V(OuterContext) \ |
136 V(Parameter) \ | 136 V(Parameter) \ |
137 V(Power) \ | 137 V(Power) \ |
| 138 V(Random) \ |
138 V(PushArgument) \ | 139 V(PushArgument) \ |
139 V(RegExpLiteral) \ | 140 V(RegExpLiteral) \ |
140 V(Return) \ | 141 V(Return) \ |
141 V(ShiftI) \ | 142 V(ShiftI) \ |
142 V(SmiTag) \ | 143 V(SmiTag) \ |
143 V(SmiUntag) \ | 144 V(SmiUntag) \ |
144 V(StackCheck) \ | 145 V(StackCheck) \ |
145 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
146 V(StoreGlobalCell) \ | 147 V(StoreGlobalCell) \ |
147 V(StoreGlobalGeneric) \ | 148 V(StoreGlobalGeneric) \ |
(...skipping 888 matching lines...) Loading... |
1036 LPower(LOperand* left, LOperand* right) { | 1037 LPower(LOperand* left, LOperand* right) { |
1037 inputs_[0] = left; | 1038 inputs_[0] = left; |
1038 inputs_[1] = right; | 1039 inputs_[1] = right; |
1039 } | 1040 } |
1040 | 1041 |
1041 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1042 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1042 DECLARE_HYDROGEN_ACCESSOR(Power) | 1043 DECLARE_HYDROGEN_ACCESSOR(Power) |
1043 }; | 1044 }; |
1044 | 1045 |
1045 | 1046 |
| 1047 class LRandom: public LTemplateInstruction<1, 1, 0> { |
| 1048 public: |
| 1049 explicit LRandom(LOperand* global_object) { |
| 1050 inputs_[0] = global_object; |
| 1051 } |
| 1052 |
| 1053 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1054 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1055 }; |
| 1056 |
| 1057 |
1046 class LArithmeticD: public LTemplateInstruction<1, 2, 0> { | 1058 class LArithmeticD: public LTemplateInstruction<1, 2, 0> { |
1047 public: | 1059 public: |
1048 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1060 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1049 : op_(op) { | 1061 : op_(op) { |
1050 inputs_[0] = left; | 1062 inputs_[0] = left; |
1051 inputs_[1] = right; | 1063 inputs_[1] = right; |
1052 } | 1064 } |
1053 | 1065 |
1054 Token::Value op() const { return op_; } | 1066 Token::Value op() const { return op_; } |
1055 | 1067 |
(...skipping 1319 matching lines...) Loading... |
2375 | 2387 |
2376 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2377 }; | 2389 }; |
2378 | 2390 |
2379 #undef DECLARE_HYDROGEN_ACCESSOR | 2391 #undef DECLARE_HYDROGEN_ACCESSOR |
2380 #undef DECLARE_CONCRETE_INSTRUCTION | 2392 #undef DECLARE_CONCRETE_INSTRUCTION |
2381 | 2393 |
2382 } } // namespace v8::internal | 2394 } } // namespace v8::internal |
2383 | 2395 |
2384 #endif // V8_IA32_LITHIUM_IA32_H_ | 2396 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |