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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 #define HYDROGEN_ABSTRACT_INSTRUCTION_LIST(V) \ | 58 #define HYDROGEN_ABSTRACT_INSTRUCTION_LIST(V) \ |
59 V(ArithmeticBinaryOperation) \ | 59 V(ArithmeticBinaryOperation) \ |
60 V(BinaryOperation) \ | 60 V(BinaryOperation) \ |
61 V(BitwiseBinaryOperation) \ | 61 V(BitwiseBinaryOperation) \ |
62 V(ControlInstruction) \ | 62 V(ControlInstruction) \ |
63 V(Instruction) \ | 63 V(Instruction) \ |
64 | 64 |
65 | 65 |
66 #define HYDROGEN_CONCRETE_INSTRUCTION_LIST(V) \ | 66 #define HYDROGEN_CONCRETE_INSTRUCTION_LIST(V) \ |
| 67 V(AbnormalExit) \ |
67 V(AccessArgumentsAt) \ | 68 V(AccessArgumentsAt) \ |
68 V(Add) \ | 69 V(Add) \ |
69 V(Allocate) \ | 70 V(Allocate) \ |
70 V(ApplyArguments) \ | 71 V(ApplyArguments) \ |
71 V(ArgumentsElements) \ | 72 V(ArgumentsElements) \ |
72 V(ArgumentsLength) \ | 73 V(ArgumentsLength) \ |
73 V(ArgumentsObject) \ | 74 V(ArgumentsObject) \ |
74 V(Bitwise) \ | 75 V(Bitwise) \ |
75 V(BlockEntry) \ | 76 V(BlockEntry) \ |
76 V(BoundsCheck) \ | 77 V(BoundsCheck) \ |
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 | 1451 |
1451 private: | 1452 private: |
1452 HReturn(HValue* context, HValue* value, HValue* parameter_count = 0) { | 1453 HReturn(HValue* context, HValue* value, HValue* parameter_count = 0) { |
1453 SetOperandAt(0, value); | 1454 SetOperandAt(0, value); |
1454 SetOperandAt(1, context); | 1455 SetOperandAt(1, context); |
1455 SetOperandAt(2, parameter_count); | 1456 SetOperandAt(2, parameter_count); |
1456 } | 1457 } |
1457 }; | 1458 }; |
1458 | 1459 |
1459 | 1460 |
| 1461 class HAbnormalExit V8_FINAL : public HTemplateControlInstruction<0, 0> { |
| 1462 public: |
| 1463 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 1464 return Representation::None(); |
| 1465 } |
| 1466 |
| 1467 DECLARE_CONCRETE_INSTRUCTION(AbnormalExit) |
| 1468 }; |
| 1469 |
| 1470 |
1460 class HUnaryOperation : public HTemplateInstruction<1> { | 1471 class HUnaryOperation : public HTemplateInstruction<1> { |
1461 public: | 1472 public: |
1462 HUnaryOperation(HValue* value, HType type = HType::Tagged()) | 1473 HUnaryOperation(HValue* value, HType type = HType::Tagged()) |
1463 : HTemplateInstruction<1>(type) { | 1474 : HTemplateInstruction<1>(type) { |
1464 SetOperandAt(0, value); | 1475 SetOperandAt(0, value); |
1465 } | 1476 } |
1466 | 1477 |
1467 static HUnaryOperation* cast(HValue* value) { | 1478 static HUnaryOperation* cast(HValue* value) { |
1468 return reinterpret_cast<HUnaryOperation*>(value); | 1479 return reinterpret_cast<HUnaryOperation*>(value); |
1469 } | 1480 } |
(...skipping 5566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7036 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7047 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7037 }; | 7048 }; |
7038 | 7049 |
7039 | 7050 |
7040 #undef DECLARE_INSTRUCTION | 7051 #undef DECLARE_INSTRUCTION |
7041 #undef DECLARE_CONCRETE_INSTRUCTION | 7052 #undef DECLARE_CONCRETE_INSTRUCTION |
7042 | 7053 |
7043 } } // namespace v8::internal | 7054 } } // namespace v8::internal |
7044 | 7055 |
7045 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7056 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |