Chromium Code Reviews| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 V(CheckSmi) \ | 89 V(CheckSmi) \ |
| 90 V(ClampToUint8) \ | 90 V(ClampToUint8) \ |
| 91 V(ClassOfTest) \ | 91 V(ClassOfTest) \ |
| 92 V(Compare) \ | 92 V(Compare) \ |
| 93 V(CompareJSObjectEq) \ | 93 V(CompareJSObjectEq) \ |
| 94 V(CompareMap) \ | 94 V(CompareMap) \ |
| 95 V(CompareSymbolEq) \ | 95 V(CompareSymbolEq) \ |
| 96 V(Constant) \ | 96 V(Constant) \ |
| 97 V(Context) \ | 97 V(Context) \ |
| 98 V(DeleteProperty) \ | 98 V(DeleteProperty) \ |
| 99 V(EagerDeoptimize) \ | |
|
danno
2011/06/01 10:11:27
My gut feeling is that Eager vs. Lazy isn't the r
fschneider
2011/06/01 11:04:48
Done.
| |
| 99 V(Deoptimize) \ | 100 V(Deoptimize) \ |
| 100 V(Div) \ | 101 V(Div) \ |
| 101 V(EnterInlined) \ | 102 V(EnterInlined) \ |
| 102 V(ExternalArrayLength) \ | 103 V(ExternalArrayLength) \ |
| 103 V(FixedArrayLength) \ | 104 V(FixedArrayLength) \ |
| 104 V(ToInt32) \ | 105 V(ToInt32) \ |
| 105 V(ForceRepresentation) \ | 106 V(ForceRepresentation) \ |
| 106 V(FunctionLiteral) \ | 107 V(FunctionLiteral) \ |
| 107 V(GetCachedArrayIndex) \ | 108 V(GetCachedArrayIndex) \ |
| 108 V(GlobalObject) \ | 109 V(GlobalObject) \ |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 838 class HBlockEntry: public HTemplateInstruction<0> { | 839 class HBlockEntry: public HTemplateInstruction<0> { |
| 839 public: | 840 public: |
| 840 virtual Representation RequiredInputRepresentation(int index) const { | 841 virtual Representation RequiredInputRepresentation(int index) const { |
| 841 return Representation::None(); | 842 return Representation::None(); |
| 842 } | 843 } |
| 843 | 844 |
| 844 DECLARE_CONCRETE_INSTRUCTION(BlockEntry) | 845 DECLARE_CONCRETE_INSTRUCTION(BlockEntry) |
| 845 }; | 846 }; |
| 846 | 847 |
| 847 | 848 |
| 849 class HEagerDeoptimize: public HTemplateInstruction<0> { | |
| 850 public: | |
| 851 virtual Representation RequiredInputRepresentation(int index) const { | |
| 852 return Representation::None(); | |
| 853 } | |
| 854 | |
| 855 DECLARE_CONCRETE_INSTRUCTION(EagerDeoptimize) | |
| 856 }; | |
| 857 | |
| 858 | |
| 848 class HDeoptimize: public HControlInstruction { | 859 class HDeoptimize: public HControlInstruction { |
| 849 public: | 860 public: |
| 850 explicit HDeoptimize(int environment_length) | 861 explicit HDeoptimize(int environment_length) |
| 851 : HControlInstruction(NULL, NULL), | 862 : HControlInstruction(NULL, NULL), |
| 852 values_(environment_length) { } | 863 values_(environment_length) { } |
| 853 | 864 |
| 854 virtual Representation RequiredInputRepresentation(int index) const { | 865 virtual Representation RequiredInputRepresentation(int index) const { |
| 855 return Representation::None(); | 866 return Representation::None(); |
| 856 } | 867 } |
| 857 | 868 |
| 858 virtual int OperandCount() { return values_.length(); } | 869 virtual int OperandCount() { return values_.length(); } |
| 859 virtual HValue* OperandAt(int index) { return values_[index]; } | 870 virtual HValue* OperandAt(int index) { return values_[index]; } |
| 871 virtual void PrintDataTo(StringStream* stream); | |
| 860 | 872 |
| 861 void AddEnvironmentValue(HValue* value) { | 873 void AddEnvironmentValue(HValue* value) { |
| 862 values_.Add(NULL); | 874 values_.Add(NULL); |
| 863 SetOperandAt(values_.length() - 1, value); | 875 SetOperandAt(values_.length() - 1, value); |
| 864 } | 876 } |
| 865 | 877 |
| 866 DECLARE_CONCRETE_INSTRUCTION(Deoptimize) | 878 DECLARE_CONCRETE_INSTRUCTION(Deoptimize) |
| 867 | 879 |
| 868 enum UseEnvironment { | 880 enum UseEnvironment { |
| 869 kNoUses, | 881 kNoUses, |
| (...skipping 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4000 | 4012 |
| 4001 DECLARE_CONCRETE_INSTRUCTION(In) | 4013 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4002 }; | 4014 }; |
| 4003 | 4015 |
| 4004 #undef DECLARE_INSTRUCTION | 4016 #undef DECLARE_INSTRUCTION |
| 4005 #undef DECLARE_CONCRETE_INSTRUCTION | 4017 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4006 | 4018 |
| 4007 } } // namespace v8::internal | 4019 } } // namespace v8::internal |
| 4008 | 4020 |
| 4009 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4021 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |