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

Side by Side Diff: src/compiler/instruction-selector.h

Issue 677433002: Add floor, ceil, round (truncate) instructions for ia32, x64 (if SSE4.1) and (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix integer overflow. Created 6 years, 1 month 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 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void VisitPhi(Node* node); 178 void VisitPhi(Node* node);
179 void VisitProjection(Node* node); 179 void VisitProjection(Node* node);
180 void VisitConstant(Node* node); 180 void VisitConstant(Node* node);
181 void VisitCall(Node* call); 181 void VisitCall(Node* call);
182 void VisitGoto(BasicBlock* target); 182 void VisitGoto(BasicBlock* target);
183 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); 183 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch);
184 void VisitReturn(Node* value); 184 void VisitReturn(Node* value);
185 void VisitThrow(Node* value); 185 void VisitThrow(Node* value);
186 void VisitDeoptimize(Node* deopt); 186 void VisitDeoptimize(Node* deopt);
187 187
188 void UnsupportedOperator(Node* node);
189
188 // =========================================================================== 190 // ===========================================================================
189 191
190 Schedule* schedule() const { return schedule_; } 192 Schedule* schedule() const { return schedule_; }
191 Linkage* linkage() const { return linkage_; } 193 Linkage* linkage() const { return linkage_; }
192 InstructionSequence* sequence() const { return sequence_; } 194 InstructionSequence* sequence() const { return sequence_; }
193 Zone* instruction_zone() const { return sequence()->zone(); } 195 Zone* instruction_zone() const { return sequence()->zone(); }
194 Zone* zone() const { return zone_; } 196 Zone* zone() const { return zone_; }
195 197
196 // =========================================================================== 198 // ===========================================================================
197 199
198 Zone* const zone_; 200 Zone* const zone_;
199 Linkage* const linkage_; 201 Linkage* const linkage_;
200 InstructionSequence* const sequence_; 202 InstructionSequence* const sequence_;
201 SourcePositionTable* const source_positions_; 203 SourcePositionTable* const source_positions_;
202 Features features_; 204 Features features_;
203 Schedule* const schedule_; 205 Schedule* const schedule_;
204 BasicBlock* current_block_; 206 BasicBlock* current_block_;
205 ZoneDeque<Instruction*> instructions_; 207 ZoneDeque<Instruction*> instructions_;
206 BoolVector defined_; 208 BoolVector defined_;
207 BoolVector used_; 209 BoolVector used_;
208 }; 210 };
209 211
210 } // namespace compiler 212 } // namespace compiler
211 } // namespace internal 213 } // namespace internal
212 } // namespace v8 214 } // namespace v8
213 215
214 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 216 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698