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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 V(CheckSmiOrInt32) \ | 96 V(CheckSmiOrInt32) \ |
97 V(ClampToUint8) \ | 97 V(ClampToUint8) \ |
98 V(ClassOfTestAndBranch) \ | 98 V(ClassOfTestAndBranch) \ |
99 V(CompareIDAndBranch) \ | 99 V(CompareIDAndBranch) \ |
100 V(CompareGeneric) \ | 100 V(CompareGeneric) \ |
101 V(CompareObjectEqAndBranch) \ | 101 V(CompareObjectEqAndBranch) \ |
102 V(CompareMap) \ | 102 V(CompareMap) \ |
103 V(CompareConstantEqAndBranch) \ | 103 V(CompareConstantEqAndBranch) \ |
104 V(Constant) \ | 104 V(Constant) \ |
105 V(Context) \ | 105 V(Context) \ |
| 106 V(DebugBreak) \ |
106 V(DeclareGlobals) \ | 107 V(DeclareGlobals) \ |
107 V(DeleteProperty) \ | 108 V(DeleteProperty) \ |
108 V(Deoptimize) \ | 109 V(Deoptimize) \ |
109 V(Div) \ | 110 V(Div) \ |
110 V(DummyUse) \ | 111 V(DummyUse) \ |
111 V(ElementsKind) \ | 112 V(ElementsKind) \ |
112 V(EnterInlined) \ | 113 V(EnterInlined) \ |
113 V(FixedArrayBaseLength) \ | 114 V(FixedArrayBaseLength) \ |
114 V(ForceRepresentation) \ | 115 V(ForceRepresentation) \ |
115 V(FunctionLiteral) \ | 116 V(FunctionLiteral) \ |
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 class HSoftDeoptimize: public HTemplateInstruction<0> { | 1457 class HSoftDeoptimize: public HTemplateInstruction<0> { |
1457 public: | 1458 public: |
1458 virtual Representation RequiredInputRepresentation(int index) { | 1459 virtual Representation RequiredInputRepresentation(int index) { |
1459 return Representation::None(); | 1460 return Representation::None(); |
1460 } | 1461 } |
1461 | 1462 |
1462 DECLARE_CONCRETE_INSTRUCTION(SoftDeoptimize) | 1463 DECLARE_CONCRETE_INSTRUCTION(SoftDeoptimize) |
1463 }; | 1464 }; |
1464 | 1465 |
1465 | 1466 |
| 1467 // Inserts an int3/stop break instruction for debugging purposes. |
| 1468 class HDebugBreak: public HTemplateInstruction<0> { |
| 1469 public: |
| 1470 virtual Representation RequiredInputRepresentation(int index) { |
| 1471 return Representation::None(); |
| 1472 } |
| 1473 |
| 1474 DECLARE_CONCRETE_INSTRUCTION(DebugBreak) |
| 1475 }; |
| 1476 |
| 1477 |
1466 class HDeoptimize: public HControlInstruction { | 1478 class HDeoptimize: public HControlInstruction { |
1467 public: | 1479 public: |
1468 HDeoptimize(int environment_length, Zone* zone) | 1480 HDeoptimize(int environment_length, Zone* zone) |
1469 : values_(environment_length, zone) { } | 1481 : values_(environment_length, zone) { } |
1470 | 1482 |
1471 virtual Representation RequiredInputRepresentation(int index) { | 1483 virtual Representation RequiredInputRepresentation(int index) { |
1472 return Representation::None(); | 1484 return Representation::None(); |
1473 } | 1485 } |
1474 | 1486 |
1475 virtual int OperandCount() { return values_.length(); } | 1487 virtual int OperandCount() { return values_.length(); } |
(...skipping 4973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6449 virtual bool IsDeletable() const { return true; } | 6461 virtual bool IsDeletable() const { return true; } |
6450 }; | 6462 }; |
6451 | 6463 |
6452 | 6464 |
6453 #undef DECLARE_INSTRUCTION | 6465 #undef DECLARE_INSTRUCTION |
6454 #undef DECLARE_CONCRETE_INSTRUCTION | 6466 #undef DECLARE_CONCRETE_INSTRUCTION |
6455 | 6467 |
6456 } } // namespace v8::internal | 6468 } } // namespace v8::internal |
6457 | 6469 |
6458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6470 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |