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

Side by Side Diff: src/compiler/machine-operator.h

Issue 447203002: Add Uint32AddWithOverflow and Uint32SubWithOverflow machine operators. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/compiler/machine-node-factory.h ('k') | src/compiler/opcodes.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ 6 #define V8_COMPILER_MACHINE_OPERATOR_H_
7 7
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 Operator* Word64And() { BINOP_AC(Word64And); } 112 Operator* Word64And() { BINOP_AC(Word64And); }
113 Operator* Word64Or() { BINOP_AC(Word64Or); } 113 Operator* Word64Or() { BINOP_AC(Word64Or); }
114 Operator* Word64Xor() { BINOP_AC(Word64Xor); } 114 Operator* Word64Xor() { BINOP_AC(Word64Xor); }
115 Operator* Word64Shl() { BINOP(Word64Shl); } 115 Operator* Word64Shl() { BINOP(Word64Shl); }
116 Operator* Word64Shr() { BINOP(Word64Shr); } 116 Operator* Word64Shr() { BINOP(Word64Shr); }
117 Operator* Word64Sar() { BINOP(Word64Sar); } 117 Operator* Word64Sar() { BINOP(Word64Sar); }
118 Operator* Word64Equal() { BINOP_C(Word64Equal); } 118 Operator* Word64Equal() { BINOP_C(Word64Equal); }
119 119
120 Operator* Int32Add() { BINOP_AC(Int32Add); } 120 Operator* Int32Add() { BINOP_AC(Int32Add); }
121 Operator* Int32AddWithOverflow() { BINOP_ACO(Int32AddWithOverflow); } 121 Operator* Int32AddWithOverflow() { BINOP_ACO(Int32AddWithOverflow); }
122 Operator* Uint32AddWithOverflow() { BINOP_ACO(Uint32AddWithOverflow); }
122 Operator* Int32Sub() { BINOP(Int32Sub); } 123 Operator* Int32Sub() { BINOP(Int32Sub); }
123 Operator* Int32SubWithOverflow() { BINOP_O(Int32SubWithOverflow); } 124 Operator* Int32SubWithOverflow() { BINOP_O(Int32SubWithOverflow); }
125 Operator* Uint32SubWithOverflow() { BINOP_O(Uint32SubWithOverflow); }
124 Operator* Int32Mul() { BINOP_AC(Int32Mul); } 126 Operator* Int32Mul() { BINOP_AC(Int32Mul); }
125 Operator* Int32Div() { BINOP(Int32Div); } 127 Operator* Int32Div() { BINOP(Int32Div); }
126 Operator* Int32UDiv() { BINOP(Int32UDiv); } 128 Operator* Int32UDiv() { BINOP(Int32UDiv); }
127 Operator* Int32Mod() { BINOP(Int32Mod); } 129 Operator* Int32Mod() { BINOP(Int32Mod); }
128 Operator* Int32UMod() { BINOP(Int32UMod); } 130 Operator* Int32UMod() { BINOP(Int32UMod); }
129 Operator* Int32LessThan() { BINOP(Int32LessThan); } 131 Operator* Int32LessThan() { BINOP(Int32LessThan); }
130 Operator* Int32LessThanOrEqual() { BINOP(Int32LessThanOrEqual); } 132 Operator* Int32LessThanOrEqual() { BINOP(Int32LessThanOrEqual); }
131 Operator* Uint32LessThan() { BINOP(Uint32LessThan); } 133 Operator* Uint32LessThan() { BINOP(Uint32LessThan); }
132 Operator* Uint32LessThanOrEqual() { BINOP(Uint32LessThanOrEqual); } 134 Operator* Uint32LessThanOrEqual() { BINOP(Uint32LessThanOrEqual); }
133 135
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 184
183 private: 185 private:
184 Zone* zone_; 186 Zone* zone_;
185 MachineRepresentation word_; 187 MachineRepresentation word_;
186 }; 188 };
187 } 189 }
188 } 190 }
189 } // namespace v8::internal::compiler 191 } // namespace v8::internal::compiler
190 192
191 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 193 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-node-factory.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698