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

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

Issue 6461021: Add a genuine unary minus instruction to Crankshaft.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
120 V(LoadElements) \ 120 V(LoadElements) \
121 V(LoadFunctionPrototype) \ 121 V(LoadFunctionPrototype) \
122 V(LoadGlobal) \ 122 V(LoadGlobal) \
123 V(LoadKeyedFastElement) \ 123 V(LoadKeyedFastElement) \
124 V(LoadKeyedGeneric) \ 124 V(LoadKeyedGeneric) \
125 V(LoadNamedField) \ 125 V(LoadNamedField) \
126 V(LoadNamedGeneric) \ 126 V(LoadNamedGeneric) \
127 V(ModI) \ 127 V(ModI) \
128 V(MulI) \ 128 V(MulI) \
129 V(NegI) \
130 V(NegD) \
131 V(NegT) \
129 V(NumberTagD) \ 132 V(NumberTagD) \
130 V(NumberTagI) \ 133 V(NumberTagI) \
131 V(NumberUntagD) \ 134 V(NumberUntagD) \
132 V(ObjectLiteral) \ 135 V(ObjectLiteral) \
133 V(OsrEntry) \ 136 V(OsrEntry) \
134 V(OuterContext) \ 137 V(OuterContext) \
135 V(Parameter) \ 138 V(Parameter) \
136 V(Power) \ 139 V(Power) \
137 V(PushArgument) \ 140 V(PushArgument) \
138 V(RegExpLiteral) \ 141 V(RegExpLiteral) \
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 class LBitNotI: public LTemplateInstruction<1, 1, 0> { 1047 class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1045 public: 1048 public:
1046 explicit LBitNotI(LOperand* value) { 1049 explicit LBitNotI(LOperand* value) {
1047 inputs_[0] = value; 1050 inputs_[0] = value;
1048 } 1051 }
1049 1052
1050 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") 1053 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1051 }; 1054 };
1052 1055
1053 1056
1057 class LNegI: public LTemplateInstruction<1, 1, 0> {
1058 public:
1059 explicit LNegI(LOperand* value) {
Kevin Millikin (Chromium) 2011/02/11 12:12:59 I've been trying to create simple accessors for th
fschneider 2011/02/11 12:44:12 Done.
1060 inputs_[0] = value;
1061 }
1062
1063 DECLARE_CONCRETE_INSTRUCTION(NegI, "neg-i")
1064 DECLARE_HYDROGEN_ACCESSOR(Neg)
1065 };
1066
1067
1068 class LNegD: public LTemplateInstruction<1, 1, 1> {
1069 public:
1070 explicit LNegD(LOperand* value, LOperand* temp) {
1071 inputs_[0] = value;
1072 temps_[0] = temp;
1073 }
1074
1075 DECLARE_CONCRETE_INSTRUCTION(NegD, "neg-d")
1076 };
1077
1078
1079 class LNegT: public LTemplateInstruction<1, 1, 0> {
1080 public:
1081 explicit LNegT(LOperand* value) {
1082 inputs_[0] = value;
1083 }
1084
1085 DECLARE_CONCRETE_INSTRUCTION(NegT, "neg-t")
1086 };
1087
1088
1054 class LAddI: public LTemplateInstruction<1, 2, 0> { 1089 class LAddI: public LTemplateInstruction<1, 2, 0> {
1055 public: 1090 public:
1056 LAddI(LOperand* left, LOperand* right) { 1091 LAddI(LOperand* left, LOperand* right) {
1057 inputs_[0] = left; 1092 inputs_[0] = left;
1058 inputs_[1] = right; 1093 inputs_[1] = right;
1059 } 1094 }
1060 1095
1061 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") 1096 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1062 DECLARE_HYDROGEN_ACCESSOR(Add) 1097 DECLARE_HYDROGEN_ACCESSOR(Add)
1063 }; 1098 };
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2041 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2007 }; 2042 };
2008 2043
2009 #undef DECLARE_HYDROGEN_ACCESSOR 2044 #undef DECLARE_HYDROGEN_ACCESSOR
2010 #undef DECLARE_INSTRUCTION 2045 #undef DECLARE_INSTRUCTION
2011 #undef DECLARE_CONCRETE_INSTRUCTION 2046 #undef DECLARE_CONCRETE_INSTRUCTION
2012 2047
2013 } } // namespace v8::internal 2048 } } // namespace v8::internal
2014 2049
2015 #endif // V8_IA32_LITHIUM_IA32_H_ 2050 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698