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

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

Issue 63423004: Introduce %_IsMinusZero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: extended test case Created 7 years, 1 month 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 V(CheckInstanceType) \ 65 V(CheckInstanceType) \
66 V(CheckMaps) \ 66 V(CheckMaps) \
67 V(CheckMapValue) \ 67 V(CheckMapValue) \
68 V(CheckNonSmi) \ 68 V(CheckNonSmi) \
69 V(CheckSmi) \ 69 V(CheckSmi) \
70 V(CheckValue) \ 70 V(CheckValue) \
71 V(ClampDToUint8) \ 71 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 72 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 73 V(ClampTToUint8) \
74 V(ClassOfTestAndBranch) \ 74 V(ClassOfTestAndBranch) \
75 V(CompareMinusZeroAndBranch) \
75 V(CompareNumericAndBranch) \ 76 V(CompareNumericAndBranch) \
76 V(CmpObjectEqAndBranch) \ 77 V(CmpObjectEqAndBranch) \
77 V(CmpHoleAndBranch) \ 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) \
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 inputs_[0] = object; 868 inputs_[0] = object;
868 } 869 }
869 870
870 LOperand* object() { return inputs_[0]; } 871 LOperand* object() { return inputs_[0]; }
871 872
872 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 873 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
873 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 874 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
874 }; 875 };
875 876
876 877
878 class LCompareMinusZeroAndBranch V8_FINAL : public LControlInstruction<1, 0> {
879 public:
880 explicit LCompareMinusZeroAndBranch(LOperand* value) {
881 inputs_[0] = value;
882 }
883
884 LOperand* value() { return inputs_[0]; }
885
886 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
887 "cmp-minus-zero-and-branch")
888 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
889 };
890
891
892
877 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 0> { 893 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 0> {
878 public: 894 public:
879 explicit LIsObjectAndBranch(LOperand* value) { 895 explicit LIsObjectAndBranch(LOperand* value) {
880 inputs_[0] = value; 896 inputs_[0] = value;
881 } 897 }
882 898
883 LOperand* value() { return inputs_[0]; } 899 LOperand* value() { return inputs_[0]; }
884 900
885 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 901 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
886 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 902 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 2864
2849 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2865 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2850 }; 2866 };
2851 2867
2852 #undef DECLARE_HYDROGEN_ACCESSOR 2868 #undef DECLARE_HYDROGEN_ACCESSOR
2853 #undef DECLARE_CONCRETE_INSTRUCTION 2869 #undef DECLARE_CONCRETE_INSTRUCTION
2854 2870
2855 } } // namespace v8::int 2871 } } // namespace v8::int
2856 2872
2857 #endif // V8_X64_LITHIUM_X64_H_ 2873 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698