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 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 explicit LThrow(LOperand* value) { | 1348 explicit LThrow(LOperand* value) { |
1350 inputs_[0] = value; | 1349 inputs_[0] = value; |
1351 } | 1350 } |
1352 | 1351 |
1353 LOperand* value() { return inputs_[0]; } | 1352 LOperand* value() { return inputs_[0]; } |
1354 | 1353 |
1355 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | 1354 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") |
1356 }; | 1355 }; |
1357 | 1356 |
1358 | 1357 |
1359 class LBitNotI: public LTemplateInstruction<1, 1, 0> { | |
1360 public: | |
1361 explicit LBitNotI(LOperand* value) { | |
1362 inputs_[0] = value; | |
1363 } | |
1364 | |
1365 LOperand* value() { return inputs_[0]; } | |
1366 | |
1367 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") | |
1368 }; | |
1369 | |
1370 | |
1371 class LAddI: public LTemplateInstruction<1, 2, 0> { | 1358 class LAddI: public LTemplateInstruction<1, 2, 0> { |
1372 public: | 1359 public: |
1373 LAddI(LOperand* left, LOperand* right) { | 1360 LAddI(LOperand* left, LOperand* right) { |
1374 inputs_[0] = left; | 1361 inputs_[0] = left; |
1375 inputs_[1] = right; | 1362 inputs_[1] = right; |
1376 } | 1363 } |
1377 | 1364 |
1378 LOperand* left() { return inputs_[0]; } | 1365 LOperand* left() { return inputs_[0]; } |
1379 LOperand* right() { return inputs_[1]; } | 1366 LOperand* right() { return inputs_[1]; } |
1380 | 1367 |
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2752 | 2739 |
2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2740 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2754 }; | 2741 }; |
2755 | 2742 |
2756 #undef DECLARE_HYDROGEN_ACCESSOR | 2743 #undef DECLARE_HYDROGEN_ACCESSOR |
2757 #undef DECLARE_CONCRETE_INSTRUCTION | 2744 #undef DECLARE_CONCRETE_INSTRUCTION |
2758 | 2745 |
2759 } } // namespace v8::internal | 2746 } } // namespace v8::internal |
2760 | 2747 |
2761 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2748 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |