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

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

Issue 23130006: MIPS: Never hchange nan-hole to hole or hole to nan-hole. Only allow changing hole to nan if all us… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nits. 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { 881 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
881 public: 882 public:
882 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 883 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
883 inputs_[0] = left; 884 inputs_[0] = left;
884 inputs_[1] = right; 885 inputs_[1] = right;
885 } 886 }
886 887
887 LOperand* left() { return inputs_[0]; } 888 LOperand* left() { return inputs_[0]; }
888 LOperand* right() { return inputs_[1]; } 889 LOperand* right() { return inputs_[1]; }
889 890
890 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, 891 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch")
891 "cmp-object-eq-and-branch")
892 DECLARE_HYDROGEN_ACCESSOR(CompareObjectEqAndBranch) 892 DECLARE_HYDROGEN_ACCESSOR(CompareObjectEqAndBranch)
893 }; 893 };
894 894
895 895
896 class LCmpHoleAndBranch: public LControlInstruction<1, 0> {
897 public:
898 explicit LCmpHoleAndBranch(LOperand* object) {
899 inputs_[0] = object;
900 }
901
902 LOperand* object() { return inputs_[0]; }
903
904 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
905 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
906 };
907
908
896 class LIsObjectAndBranch: public LControlInstruction<1, 1> { 909 class LIsObjectAndBranch: public LControlInstruction<1, 1> {
897 public: 910 public:
898 LIsObjectAndBranch(LOperand* value, LOperand* temp) { 911 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
899 inputs_[0] = value; 912 inputs_[0] = value;
900 temps_[0] = temp; 913 temps_[0] = temp;
901 } 914 }
902 915
903 LOperand* value() { return inputs_[0]; } 916 LOperand* value() { return inputs_[0]; }
904 LOperand* temp() { return temps_[0]; } 917 LOperand* temp() { return temps_[0]; }
905 918
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 2734
2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2723 }; 2736 };
2724 2737
2725 #undef DECLARE_HYDROGEN_ACCESSOR 2738 #undef DECLARE_HYDROGEN_ACCESSOR
2726 #undef DECLARE_CONCRETE_INSTRUCTION 2739 #undef DECLARE_CONCRETE_INSTRUCTION
2727 2740
2728 } } // namespace v8::internal 2741 } } // namespace v8::internal
2729 2742
2730 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2743 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698