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

Side by Side Diff: src/x64/lithium-x64.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/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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 V(CheckMaps) \ 67 V(CheckMaps) \
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(ClassOfTestAndBranch) \ 74 V(ClassOfTestAndBranch) \
75 V(CompareNumericAndBranch) \ 75 V(CompareNumericAndBranch) \
76 V(CmpObjectEqAndBranch) \ 76 V(CmpObjectEqAndBranch) \
77 V(CmpHoleAndBranch) \
77 V(CmpMapAndBranch) \ 78 V(CmpMapAndBranch) \
78 V(CmpT) \ 79 V(CmpT) \
79 V(ConstantD) \ 80 V(ConstantD) \
80 V(ConstantE) \ 81 V(ConstantE) \
81 V(ConstantI) \ 82 V(ConstantI) \
82 V(ConstantS) \ 83 V(ConstantS) \
83 V(ConstantT) \ 84 V(ConstantT) \
84 V(Context) \ 85 V(Context) \
85 V(DateField) \ 86 V(DateField) \
86 V(DebugBreak) \ 87 V(DebugBreak) \
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { 817 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
817 public: 818 public:
818 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 819 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
819 inputs_[0] = left; 820 inputs_[0] = left;
820 inputs_[1] = right; 821 inputs_[1] = right;
821 } 822 }
822 823
823 LOperand* left() { return inputs_[0]; } 824 LOperand* left() { return inputs_[0]; }
824 LOperand* right() { return inputs_[1]; } 825 LOperand* right() { return inputs_[1]; }
825 826
826 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, 827 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch")
827 "cmp-object-eq-and-branch")
828 }; 828 };
829 829
830 830
831 class LCmpHoleAndBranch: public LControlInstruction<1, 0> {
832 public:
833 explicit LCmpHoleAndBranch(LOperand* object) {
834 inputs_[0] = object;
835 }
836
837 LOperand* object() { return inputs_[0]; }
838
839 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
840 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
841 };
842
843
831 class LIsObjectAndBranch: public LControlInstruction<1, 0> { 844 class LIsObjectAndBranch: public LControlInstruction<1, 0> {
832 public: 845 public:
833 explicit LIsObjectAndBranch(LOperand* value) { 846 explicit LIsObjectAndBranch(LOperand* value) {
834 inputs_[0] = value; 847 inputs_[0] = value;
835 } 848 }
836 849
837 LOperand* value() { return inputs_[0]; } 850 LOperand* value() { return inputs_[0]; }
838 851
839 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 852 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
840 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 853 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 2668
2656 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2669 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2657 }; 2670 };
2658 2671
2659 #undef DECLARE_HYDROGEN_ACCESSOR 2672 #undef DECLARE_HYDROGEN_ACCESSOR
2660 #undef DECLARE_CONCRETE_INSTRUCTION 2673 #undef DECLARE_CONCRETE_INSTRUCTION
2661 2674
2662 } } // namespace v8::int 2675 } } // namespace v8::int
2663 2676
2664 #endif // V8_X64_LITHIUM_X64_H_ 2677 #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