| 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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 public: | 888 public: |
| 889 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 889 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 890 inputs_[0] = value; | 890 inputs_[0] = value; |
| 891 temps_[0] = temp; | 891 temps_[0] = temp; |
| 892 } | 892 } |
| 893 | 893 |
| 894 LOperand* value() { return inputs_[0]; } | 894 LOperand* value() { return inputs_[0]; } |
| 895 LOperand* temp() { return temps_[0]; } | 895 LOperand* temp() { return temps_[0]; } |
| 896 | 896 |
| 897 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") | 897 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") |
| 898 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch) |
| 898 | 899 |
| 899 virtual void PrintDataTo(StringStream* stream); | 900 virtual void PrintDataTo(StringStream* stream); |
| 900 }; | 901 }; |
| 901 | 902 |
| 902 | 903 |
| 903 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 904 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
| 904 public: | 905 public: |
| 905 explicit LIsSmiAndBranch(LOperand* value) { | 906 explicit LIsSmiAndBranch(LOperand* value) { |
| 906 inputs_[0] = value; | 907 inputs_[0] = value; |
| 907 } | 908 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 920 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 921 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
| 921 inputs_[0] = value; | 922 inputs_[0] = value; |
| 922 temps_[0] = temp; | 923 temps_[0] = temp; |
| 923 } | 924 } |
| 924 | 925 |
| 925 LOperand* value() { return inputs_[0]; } | 926 LOperand* value() { return inputs_[0]; } |
| 926 LOperand* temp() { return temps_[0]; } | 927 LOperand* temp() { return temps_[0]; } |
| 927 | 928 |
| 928 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 929 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
| 929 "is-undetectable-and-branch") | 930 "is-undetectable-and-branch") |
| 931 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) |
| 930 | 932 |
| 931 virtual void PrintDataTo(StringStream* stream); | 933 virtual void PrintDataTo(StringStream* stream); |
| 932 }; | 934 }; |
| 933 | 935 |
| 934 | 936 |
| 935 class LStringCompareAndBranch: public LControlInstruction<3, 0> { | 937 class LStringCompareAndBranch: public LControlInstruction<3, 0> { |
| 936 public: | 938 public: |
| 937 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) { | 939 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) { |
| 938 inputs_[0] = context; | 940 inputs_[0] = context; |
| 939 inputs_[1] = left; | 941 inputs_[1] = left; |
| (...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 | 2565 |
| 2564 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { | 2566 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
| 2565 public: | 2567 public: |
| 2566 explicit LCheckNonSmi(LOperand* value) { | 2568 explicit LCheckNonSmi(LOperand* value) { |
| 2567 inputs_[0] = value; | 2569 inputs_[0] = value; |
| 2568 } | 2570 } |
| 2569 | 2571 |
| 2570 LOperand* value() { return inputs_[0]; } | 2572 LOperand* value() { return inputs_[0]; } |
| 2571 | 2573 |
| 2572 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 2574 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
| 2575 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) |
| 2573 }; | 2576 }; |
| 2574 | 2577 |
| 2575 | 2578 |
| 2576 class LAllocateObject: public LTemplateInstruction<1, 1, 1> { | 2579 class LAllocateObject: public LTemplateInstruction<1, 1, 1> { |
| 2577 public: | 2580 public: |
| 2578 LAllocateObject(LOperand* context, LOperand* temp) { | 2581 LAllocateObject(LOperand* context, LOperand* temp) { |
| 2579 inputs_[0] = context; | 2582 inputs_[0] = context; |
| 2580 temps_[0] = temp; | 2583 temps_[0] = temp; |
| 2581 } | 2584 } |
| 2582 | 2585 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 | 2987 |
| 2985 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2986 }; | 2989 }; |
| 2987 | 2990 |
| 2988 #undef DECLARE_HYDROGEN_ACCESSOR | 2991 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2989 #undef DECLARE_CONCRETE_INSTRUCTION | 2992 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2990 | 2993 |
| 2991 } } // namespace v8::internal | 2994 } } // namespace v8::internal |
| 2992 | 2995 |
| 2993 #endif // V8_IA32_LITHIUM_IA32_H_ | 2996 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |