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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 | 869 |
870 class LConstantT: public LTemplateInstruction<1, 0, 0> { | 870 class LConstantT: public LTemplateInstruction<1, 0, 0> { |
871 public: | 871 public: |
872 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") | 872 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") |
873 DECLARE_HYDROGEN_ACCESSOR(Constant) | 873 DECLARE_HYDROGEN_ACCESSOR(Constant) |
874 | 874 |
875 Handle<Object> value() const { return hydrogen()->handle(); } | 875 Handle<Object> value() const { return hydrogen()->handle(); } |
876 }; | 876 }; |
877 | 877 |
878 | 878 |
879 class LBranch: public LControlInstruction<1, 0> { | 879 class LBranch: public LControlInstruction<1, 1> { |
880 public: | 880 public: |
881 explicit LBranch(LOperand* value) { | 881 explicit LBranch(LOperand* value, LOperand* temp) { |
882 inputs_[0] = value; | 882 inputs_[0] = value; |
| 883 temps_[0] = temp; |
883 } | 884 } |
884 | 885 |
885 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch") | 886 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch") |
886 DECLARE_HYDROGEN_ACCESSOR(Branch) | 887 DECLARE_HYDROGEN_ACCESSOR(Branch) |
887 | 888 |
888 virtual void PrintDataTo(StringStream* stream); | 889 virtual void PrintDataTo(StringStream* stream); |
889 }; | 890 }; |
890 | 891 |
891 | 892 |
892 class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> { | 893 class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> { |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2292 | 2293 |
2293 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2294 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2294 }; | 2295 }; |
2295 | 2296 |
2296 #undef DECLARE_HYDROGEN_ACCESSOR | 2297 #undef DECLARE_HYDROGEN_ACCESSOR |
2297 #undef DECLARE_CONCRETE_INSTRUCTION | 2298 #undef DECLARE_CONCRETE_INSTRUCTION |
2298 | 2299 |
2299 } } // namespace v8::internal | 2300 } } // namespace v8::internal |
2300 | 2301 |
2301 #endif // V8_IA32_LITHIUM_IA32_H_ | 2302 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |