| 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 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3006 indirect_uses_[i] = 0; | 3006 indirect_uses_[i] = 0; |
| 3007 } | 3007 } |
| 3008 ASSERT(merged_index >= 0); | 3008 ASSERT(merged_index >= 0); |
| 3009 SetFlag(kFlexibleRepresentation); | 3009 SetFlag(kFlexibleRepresentation); |
| 3010 } | 3010 } |
| 3011 | 3011 |
| 3012 virtual Representation RepresentationFromInputs(); | 3012 virtual Representation RepresentationFromInputs(); |
| 3013 | 3013 |
| 3014 virtual Range* InferRange(Zone* zone); | 3014 virtual Range* InferRange(Zone* zone); |
| 3015 virtual void InferRepresentation(HInferRepresentation* h_infer); | 3015 virtual void InferRepresentation(HInferRepresentation* h_infer); |
| 3016 Representation RepresentationObservedByAllNonPhiUses(); | |
| 3017 Representation RepresentationFromUseRequirements(); | 3016 Representation RepresentationFromUseRequirements(); |
| 3018 virtual Representation RequiredInputRepresentation(int index) { | 3017 virtual Representation RequiredInputRepresentation(int index) { |
| 3019 return representation(); | 3018 return representation(); |
| 3020 } | 3019 } |
| 3021 virtual HType CalculateInferredType(); | 3020 virtual HType CalculateInferredType(); |
| 3022 virtual int OperandCount() { return inputs_.length(); } | 3021 virtual int OperandCount() { return inputs_.length(); } |
| 3023 virtual HValue* OperandAt(int index) const { return inputs_[index]; } | 3022 virtual HValue* OperandAt(int index) const { return inputs_[index]; } |
| 3024 HValue* GetRedundantReplacement(); | 3023 HValue* GetRedundantReplacement(); |
| 3025 void AddInput(HValue* value); | 3024 void AddInput(HValue* value); |
| 3026 bool HasRealUses(); | 3025 bool HasRealUses(); |
| (...skipping 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6557 virtual bool IsDeletable() const { return true; } | 6556 virtual bool IsDeletable() const { return true; } |
| 6558 }; | 6557 }; |
| 6559 | 6558 |
| 6560 | 6559 |
| 6561 #undef DECLARE_INSTRUCTION | 6560 #undef DECLARE_INSTRUCTION |
| 6562 #undef DECLARE_CONCRETE_INSTRUCTION | 6561 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6563 | 6562 |
| 6564 } } // namespace v8::internal | 6563 } } // namespace v8::internal |
| 6565 | 6564 |
| 6566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6565 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |