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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
44 V(AccessArgumentsAt) \ | 44 V(AccessArgumentsAt) \ |
45 V(AddI) \ | 45 V(AddI) \ |
46 V(Allocate) \ | 46 V(Allocate) \ |
47 V(ApplyArguments) \ | 47 V(ApplyArguments) \ |
48 V(ArgumentsElements) \ | 48 V(ArgumentsElements) \ |
49 V(ArgumentsLength) \ | 49 V(ArgumentsLength) \ |
50 V(ArithmeticD) \ | 50 V(ArithmeticD) \ |
51 V(ArithmeticT) \ | 51 V(ArithmeticT) \ |
52 V(BitI) \ | 52 V(BitI) \ |
53 V(BitNotI) \ | |
54 V(BoundsCheck) \ | 53 V(BoundsCheck) \ |
55 V(Branch) \ | 54 V(Branch) \ |
56 V(CallConstantFunction) \ | 55 V(CallConstantFunction) \ |
57 V(CallFunction) \ | 56 V(CallFunction) \ |
58 V(CallGlobal) \ | 57 V(CallGlobal) \ |
59 V(CallKeyed) \ | 58 V(CallKeyed) \ |
60 V(CallKnownGlobal) \ | 59 V(CallKnownGlobal) \ |
61 V(CallNamed) \ | 60 V(CallNamed) \ |
62 V(CallNew) \ | 61 V(CallNew) \ |
63 V(CallNewArray) \ | 62 V(CallNewArray) \ |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 inputs_[1] = value; | 1349 inputs_[1] = value; |
1351 } | 1350 } |
1352 | 1351 |
1353 LOperand* context() { return inputs_[0]; } | 1352 LOperand* context() { return inputs_[0]; } |
1354 LOperand* value() { return inputs_[1]; } | 1353 LOperand* value() { return inputs_[1]; } |
1355 | 1354 |
1356 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | 1355 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") |
1357 }; | 1356 }; |
1358 | 1357 |
1359 | 1358 |
1360 class LBitNotI: public LTemplateInstruction<1, 1, 0> { | |
1361 public: | |
1362 explicit LBitNotI(LOperand* value) { | |
1363 inputs_[0] = value; | |
1364 } | |
1365 | |
1366 LOperand* value() { return inputs_[0]; } | |
1367 | |
1368 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") | |
1369 }; | |
1370 | |
1371 | |
1372 class LAddI: public LTemplateInstruction<1, 2, 0> { | 1359 class LAddI: public LTemplateInstruction<1, 2, 0> { |
1373 public: | 1360 public: |
1374 LAddI(LOperand* left, LOperand* right) { | 1361 LAddI(LOperand* left, LOperand* right) { |
1375 inputs_[0] = left; | 1362 inputs_[0] = left; |
1376 inputs_[1] = right; | 1363 inputs_[1] = right; |
1377 } | 1364 } |
1378 | 1365 |
1379 LOperand* left() { return inputs_[0]; } | 1366 LOperand* left() { return inputs_[0]; } |
1380 LOperand* right() { return inputs_[1]; } | 1367 LOperand* right() { return inputs_[1]; } |
1381 | 1368 |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 | 2886 |
2900 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2901 }; | 2888 }; |
2902 | 2889 |
2903 #undef DECLARE_HYDROGEN_ACCESSOR | 2890 #undef DECLARE_HYDROGEN_ACCESSOR |
2904 #undef DECLARE_CONCRETE_INSTRUCTION | 2891 #undef DECLARE_CONCRETE_INSTRUCTION |
2905 | 2892 |
2906 } } // namespace v8::internal | 2893 } } // namespace v8::internal |
2907 | 2894 |
2908 #endif // V8_IA32_LITHIUM_IA32_H_ | 2895 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |