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

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

Issue 469213002: [turbofan] Introduce WordRor machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix BUILD.gn 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/machine-operator-reducer.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 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/machine-type.h" 8 #include "src/compiler/machine-type.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/compiler/operator.h" 10 #include "src/compiler/operator.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 StoreRepresentation store_rep = {rep, kind}; 69 StoreRepresentation store_rep = {rep, kind};
70 OP1(Store, StoreRepresentation, store_rep, Operator::kNoRead, 3, 0); 70 OP1(Store, StoreRepresentation, store_rep, Operator::kNoRead, 3, 0);
71 } 71 }
72 72
73 Operator* WordAnd() { WORD_SIZE(And); } 73 Operator* WordAnd() { WORD_SIZE(And); }
74 Operator* WordOr() { WORD_SIZE(Or); } 74 Operator* WordOr() { WORD_SIZE(Or); }
75 Operator* WordXor() { WORD_SIZE(Xor); } 75 Operator* WordXor() { WORD_SIZE(Xor); }
76 Operator* WordShl() { WORD_SIZE(Shl); } 76 Operator* WordShl() { WORD_SIZE(Shl); }
77 Operator* WordShr() { WORD_SIZE(Shr); } 77 Operator* WordShr() { WORD_SIZE(Shr); }
78 Operator* WordSar() { WORD_SIZE(Sar); } 78 Operator* WordSar() { WORD_SIZE(Sar); }
79 Operator* WordRor() { WORD_SIZE(Ror); }
79 Operator* WordEqual() { WORD_SIZE(Equal); } 80 Operator* WordEqual() { WORD_SIZE(Equal); }
80 81
81 Operator* Word32And() { BINOP_AC(Word32And); } 82 Operator* Word32And() { BINOP_AC(Word32And); }
82 Operator* Word32Or() { BINOP_AC(Word32Or); } 83 Operator* Word32Or() { BINOP_AC(Word32Or); }
83 Operator* Word32Xor() { BINOP_AC(Word32Xor); } 84 Operator* Word32Xor() { BINOP_AC(Word32Xor); }
84 Operator* Word32Shl() { BINOP(Word32Shl); } 85 Operator* Word32Shl() { BINOP(Word32Shl); }
85 Operator* Word32Shr() { BINOP(Word32Shr); } 86 Operator* Word32Shr() { BINOP(Word32Shr); }
86 Operator* Word32Sar() { BINOP(Word32Sar); } 87 Operator* Word32Sar() { BINOP(Word32Sar); }
88 Operator* Word32Ror() { BINOP(Word32Ror); }
87 Operator* Word32Equal() { BINOP_C(Word32Equal); } 89 Operator* Word32Equal() { BINOP_C(Word32Equal); }
88 90
89 Operator* Word64And() { BINOP_AC(Word64And); } 91 Operator* Word64And() { BINOP_AC(Word64And); }
90 Operator* Word64Or() { BINOP_AC(Word64Or); } 92 Operator* Word64Or() { BINOP_AC(Word64Or); }
91 Operator* Word64Xor() { BINOP_AC(Word64Xor); } 93 Operator* Word64Xor() { BINOP_AC(Word64Xor); }
92 Operator* Word64Shl() { BINOP(Word64Shl); } 94 Operator* Word64Shl() { BINOP(Word64Shl); }
93 Operator* Word64Shr() { BINOP(Word64Shr); } 95 Operator* Word64Shr() { BINOP(Word64Shr); }
94 Operator* Word64Sar() { BINOP(Word64Sar); } 96 Operator* Word64Sar() { BINOP(Word64Sar); }
97 Operator* Word64Ror() { BINOP(Word64Ror); }
95 Operator* Word64Equal() { BINOP_C(Word64Equal); } 98 Operator* Word64Equal() { BINOP_C(Word64Equal); }
96 99
97 Operator* Int32Add() { BINOP_AC(Int32Add); } 100 Operator* Int32Add() { BINOP_AC(Int32Add); }
98 Operator* Int32AddWithOverflow() { BINOP_ACO(Int32AddWithOverflow); } 101 Operator* Int32AddWithOverflow() { BINOP_ACO(Int32AddWithOverflow); }
99 Operator* Int32Sub() { BINOP(Int32Sub); } 102 Operator* Int32Sub() { BINOP(Int32Sub); }
100 Operator* Int32SubWithOverflow() { BINOP_O(Int32SubWithOverflow); } 103 Operator* Int32SubWithOverflow() { BINOP_O(Int32SubWithOverflow); }
101 Operator* Int32Mul() { BINOP_AC(Int32Mul); } 104 Operator* Int32Mul() { BINOP_AC(Int32Mul); }
102 Operator* Int32Div() { BINOP(Int32Div); } 105 Operator* Int32Div() { BINOP(Int32Div); }
103 Operator* Int32UDiv() { BINOP(Int32UDiv); } 106 Operator* Int32UDiv() { BINOP(Int32UDiv); }
104 Operator* Int32Mod() { BINOP(Int32Mod); } 107 Operator* Int32Mod() { BINOP(Int32Mod); }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 162
160 private: 163 private:
161 Zone* zone_; 164 Zone* zone_;
162 MachineType word_; 165 MachineType word_;
163 }; 166 };
164 } 167 }
165 } 168 }
166 } // namespace v8::internal::compiler 169 } // namespace v8::internal::compiler
167 170
168 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 171 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-node-factory.h ('k') | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698