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

Side by Side Diff: src/compiler/instruction-selector.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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-selector.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // code if necessary. 153 // code if necessary.
154 void VisitControl(BasicBlock* block); 154 void VisitControl(BasicBlock* block);
155 155
156 // Visit the node and generate code, if any. 156 // Visit the node and generate code, if any.
157 void VisitNode(Node* node); 157 void VisitNode(Node* node);
158 158
159 #define DECLARE_GENERATOR(x) void Visit##x(Node* node); 159 #define DECLARE_GENERATOR(x) void Visit##x(Node* node);
160 MACHINE_OP_LIST(DECLARE_GENERATOR) 160 MACHINE_OP_LIST(DECLARE_GENERATOR)
161 #undef DECLARE_GENERATOR 161 #undef DECLARE_GENERATOR
162 162
163 void VisitInt32AddWithOverflow(Node* node, FlagsContinuation* cont);
164 void VisitInt32SubWithOverflow(Node* node, FlagsContinuation* cont);
165
166 void VisitWord32Test(Node* node, FlagsContinuation* cont); 163 void VisitWord32Test(Node* node, FlagsContinuation* cont);
167 void VisitWord64Test(Node* node, FlagsContinuation* cont); 164 void VisitWord64Test(Node* node, FlagsContinuation* cont);
168 void VisitWord32Compare(Node* node, FlagsContinuation* cont); 165 void VisitWord32Compare(Node* node, FlagsContinuation* cont);
169 void VisitWord64Compare(Node* node, FlagsContinuation* cont); 166 void VisitWord64Compare(Node* node, FlagsContinuation* cont);
170 void VisitFloat64Compare(Node* node, FlagsContinuation* cont); 167 void VisitFloat64Compare(Node* node, FlagsContinuation* cont);
171 168
172 void VisitParameter(Node* node); 169 void VisitParameter(Node* node);
173 void VisitPhi(Node* node); 170 void VisitPhi(Node* node);
174 void VisitProjection(Node* node); 171 void VisitProjection(Node* node);
175 void VisitConstant(Node* node); 172 void VisitConstant(Node* node);
173 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch);
176 void VisitCall(Node* call, BasicBlock* continuation, 174 void VisitCall(Node* call, BasicBlock* continuation,
177 BasicBlock* deoptimization); 175 BasicBlock* deoptimization);
178 void VisitGoto(BasicBlock* target); 176 void VisitGoto(BasicBlock* target);
179 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch);
180 void VisitReturn(Node* value); 177 void VisitReturn(Node* value);
181 void VisitThrow(Node* value); 178 void VisitThrow(Node* value);
182 void VisitDeoptimize(Node* deopt); 179 void VisitDeoptimize(Node* deopt);
183 180
184 // =========================================================================== 181 // ===========================================================================
185 182
186 Graph* graph() const { return sequence()->graph(); } 183 Graph* graph() const { return sequence()->graph(); }
187 Linkage* linkage() const { return sequence()->linkage(); } 184 Linkage* linkage() const { return sequence()->linkage(); }
188 Schedule* schedule() const { return sequence()->schedule(); } 185 Schedule* schedule() const { return sequence()->schedule(); }
189 InstructionSequence* sequence() const { return sequence_; } 186 InstructionSequence* sequence() const { return sequence_; }
(...skipping 13 matching lines...) Expand all
203 Instructions instructions_; 200 Instructions instructions_;
204 BoolVector defined_; 201 BoolVector defined_;
205 BoolVector used_; 202 BoolVector used_;
206 }; 203 };
207 204
208 } // namespace compiler 205 } // namespace compiler
209 } // namespace internal 206 } // namespace internal
210 } // namespace v8 207 } // namespace v8
211 208
212 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 209 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698