| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 V(CallStub) \ | 85 V(CallStub) \ |
| 86 V(Change) \ | 86 V(Change) \ |
| 87 V(CheckFunction) \ | 87 V(CheckFunction) \ |
| 88 V(CheckInstanceType) \ | 88 V(CheckInstanceType) \ |
| 89 V(CheckMap) \ | 89 V(CheckMap) \ |
| 90 V(CheckNonSmi) \ | 90 V(CheckNonSmi) \ |
| 91 V(CheckPrototypeMaps) \ | 91 V(CheckPrototypeMaps) \ |
| 92 V(CheckSmi) \ | 92 V(CheckSmi) \ |
| 93 V(ClampToUint8) \ | 93 V(ClampToUint8) \ |
| 94 V(ClassOfTestAndBranch) \ | 94 V(ClassOfTestAndBranch) \ |
| 95 V(CompareIDAndBranch) \ | 95 V(CompareNumbersAndBranch) \ |
| 96 V(CompareGeneric) \ | 96 V(CompareGeneric) \ |
| 97 V(CompareObjectEqAndBranch) \ | 97 V(CompareObjectEqAndBranch) \ |
| 98 V(CompareMap) \ | 98 V(CompareMap) \ |
| 99 V(CompareConstantEqAndBranch) \ | 99 V(CompareConstantEqAndBranch) \ |
| 100 V(Constant) \ | 100 V(Constant) \ |
| 101 V(Context) \ | 101 V(Context) \ |
| 102 V(DeleteProperty) \ | 102 V(DeleteProperty) \ |
| 103 V(Deoptimize) \ | 103 V(Deoptimize) \ |
| 104 V(Div) \ | 104 V(Div) \ |
| 105 V(ElementsKind) \ | 105 V(ElementsKind) \ |
| (...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 | 2567 |
| 2568 virtual HType CalculateInferredType(); | 2568 virtual HType CalculateInferredType(); |
| 2569 | 2569 |
| 2570 DECLARE_CONCRETE_INSTRUCTION(CompareGeneric) | 2570 DECLARE_CONCRETE_INSTRUCTION(CompareGeneric) |
| 2571 | 2571 |
| 2572 private: | 2572 private: |
| 2573 Token::Value token_; | 2573 Token::Value token_; |
| 2574 }; | 2574 }; |
| 2575 | 2575 |
| 2576 | 2576 |
| 2577 class HCompareIDAndBranch: public HTemplateControlInstruction<2, 2> { | 2577 class HCompareNumbersAndBranch: public HTemplateControlInstruction<2, 2> { |
| 2578 public: | 2578 public: |
| 2579 HCompareIDAndBranch(HValue* left, HValue* right, Token::Value token) | 2579 HCompareNumbersAndBranch(HValue* left, HValue* right, Token::Value token) |
| 2580 : token_(token) { | 2580 : token_(token) { |
| 2581 ASSERT(Token::IsCompareOp(token)); | 2581 ASSERT(Token::IsCompareOp(token)); |
| 2582 SetOperandAt(0, left); | 2582 SetOperandAt(0, left); |
| 2583 SetOperandAt(1, right); | 2583 SetOperandAt(1, right); |
| 2584 } | 2584 } |
| 2585 | 2585 |
| 2586 HValue* left() { return OperandAt(0); } | 2586 HValue* left() { return OperandAt(0); } |
| 2587 HValue* right() { return OperandAt(1); } | 2587 HValue* right() { return OperandAt(1); } |
| 2588 Token::Value token() const { return token_; } | 2588 Token::Value token() const { return token_; } |
| 2589 | 2589 |
| 2590 void SetInputRepresentation(Representation r); | 2590 void SetInputRepresentation(Representation r); |
| 2591 Representation GetInputRepresentation() const { | 2591 Representation GetInputRepresentation() const { |
| 2592 return input_representation_; | 2592 return input_representation_; |
| 2593 } | 2593 } |
| 2594 | 2594 |
| 2595 virtual Representation RequiredInputRepresentation(int index) const { | 2595 virtual Representation RequiredInputRepresentation(int index) const { |
| 2596 return input_representation_; | 2596 return input_representation_; |
| 2597 } | 2597 } |
| 2598 virtual void PrintDataTo(StringStream* stream); | 2598 virtual void PrintDataTo(StringStream* stream); |
| 2599 | 2599 |
| 2600 DECLARE_CONCRETE_INSTRUCTION(CompareIDAndBranch) | 2600 DECLARE_CONCRETE_INSTRUCTION(CompareNumbersAndBranch) |
| 2601 | 2601 |
| 2602 private: | 2602 private: |
| 2603 Representation input_representation_; | 2603 Representation input_representation_; |
| 2604 Token::Value token_; | 2604 Token::Value token_; |
| 2605 }; | 2605 }; |
| 2606 | 2606 |
| 2607 | 2607 |
| 2608 class HCompareObjectEqAndBranch: public HTemplateControlInstruction<2, 2> { | 2608 class HCompareObjectEqAndBranch: public HTemplateControlInstruction<2, 2> { |
| 2609 public: | 2609 public: |
| 2610 HCompareObjectEqAndBranch(HValue* left, HValue* right) { | 2610 HCompareObjectEqAndBranch(HValue* left, HValue* right) { |
| (...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4202 | 4202 |
| 4203 DECLARE_CONCRETE_INSTRUCTION(In) | 4203 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4204 }; | 4204 }; |
| 4205 | 4205 |
| 4206 #undef DECLARE_INSTRUCTION | 4206 #undef DECLARE_INSTRUCTION |
| 4207 #undef DECLARE_CONCRETE_INSTRUCTION | 4207 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4208 | 4208 |
| 4209 } } // namespace v8::internal | 4209 } } // namespace v8::internal |
| 4210 | 4210 |
| 4211 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4211 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |