Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 22152003: Never hchange nan-hole to hole or hole to nan-hole. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also change in header Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 V(CheckMapValue) \ 68 V(CheckMapValue) \
69 V(CheckNonSmi) \ 69 V(CheckNonSmi) \
70 V(CheckSmi) \ 70 V(CheckSmi) \
71 V(ClampDToUint8) \ 71 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 72 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 73 V(ClampTToUint8) \
74 V(ClampTToUint8NoSSE2) \ 74 V(ClampTToUint8NoSSE2) \
75 V(ClassOfTestAndBranch) \ 75 V(ClassOfTestAndBranch) \
76 V(CompareNumericAndBranch) \ 76 V(CompareNumericAndBranch) \
77 V(CmpObjectEqAndBranch) \ 77 V(CmpObjectEqAndBranch) \
78 V(CmpHoleAndBranch) \
78 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
79 V(CmpT) \ 80 V(CmpT) \
80 V(ConstantD) \ 81 V(ConstantD) \
81 V(ConstantE) \ 82 V(ConstantE) \
82 V(ConstantI) \ 83 V(ConstantI) \
83 V(ConstantS) \ 84 V(ConstantS) \
84 V(ConstantT) \ 85 V(ConstantT) \
85 V(Context) \ 86 V(Context) \
86 V(DateField) \ 87 V(DateField) \
87 V(DebugBreak) \ 88 V(DebugBreak) \
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { 843 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
843 public: 844 public:
844 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 845 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
845 inputs_[0] = left; 846 inputs_[0] = left;
846 inputs_[1] = right; 847 inputs_[1] = right;
847 } 848 }
848 849
849 LOperand* left() { return inputs_[0]; } 850 LOperand* left() { return inputs_[0]; }
850 LOperand* right() { return inputs_[1]; } 851 LOperand* right() { return inputs_[1]; }
851 852
852 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, 853 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch")
853 "cmp-object-eq-and-branch")
854 }; 854 };
855 855
856 856
857 class LCmpHoleAndBranch: public LControlInstruction<1, 0> {
858 public:
859 explicit LCmpHoleAndBranch(LOperand* object) {
860 inputs_[0] = object;
861 }
862
863 LOperand* object() { return inputs_[0]; }
864
865 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
866 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
867 };
868
869
857 class LIsObjectAndBranch: public LControlInstruction<1, 1> { 870 class LIsObjectAndBranch: public LControlInstruction<1, 1> {
858 public: 871 public:
859 LIsObjectAndBranch(LOperand* value, LOperand* temp) { 872 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
860 inputs_[0] = value; 873 inputs_[0] = value;
861 temps_[0] = temp; 874 temps_[0] = temp;
862 } 875 }
863 876
864 LOperand* value() { return inputs_[0]; } 877 LOperand* value() { return inputs_[0]; }
865 LOperand* temp() { return temps_[0]; } 878 LOperand* temp() { return temps_[0]; }
866 879
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 2900
2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2901 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2889 }; 2902 };
2890 2903
2891 #undef DECLARE_HYDROGEN_ACCESSOR 2904 #undef DECLARE_HYDROGEN_ACCESSOR
2892 #undef DECLARE_CONCRETE_INSTRUCTION 2905 #undef DECLARE_CONCRETE_INSTRUCTION
2893 2906
2894 } } // namespace v8::internal 2907 } } // namespace v8::internal
2895 2908
2896 #endif // V8_IA32_LITHIUM_IA32_H_ 2909 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698