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

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

Issue 668173002: Add Float64Round operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Introduce several machine ops instead of round + mode param. 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 // Returns the features supported on the target platform. 83 // Returns the features supported on the target platform.
84 static Features SupportedFeatures() { 84 static Features SupportedFeatures() {
85 return Features(CpuFeatures::SupportedFeatures()); 85 return Features(CpuFeatures::SupportedFeatures());
86 } 86 }
87 87
88 // Checks if {node} is currently live. 88 // Checks if {node} is currently live.
89 bool IsLive(Node* node) const { return !IsDefined(node) && IsUsed(node); } 89 bool IsLive(Node* node) const { return !IsDefined(node) && IsUsed(node); }
90 90
91 static SupportedOperators GetSupportedOperators();
Benedikt Meurer 2014/10/23 07:11:14 This should take a CpuFeatures parameter, because
sigurds 2014/10/23 10:37:56 As discussed, I'll add a todo.
92
91 private: 93 private:
92 friend class OperandGenerator; 94 friend class OperandGenerator;
93 95
94 // =========================================================================== 96 // ===========================================================================
95 // ============ Architecture-independent graph covering methods. ============= 97 // ============ Architecture-independent graph covering methods. =============
96 // =========================================================================== 98 // ===========================================================================
97 99
98 // Checks if {block} will appear directly after {current_block_} when 100 // Checks if {block} will appear directly after {current_block_} when
99 // assembling code, in which case, a fall-through can be used. 101 // assembling code, in which case, a fall-through can be used.
100 bool IsNextInAssemblyOrder(const BasicBlock* block) const; 102 bool IsNextInAssemblyOrder(const BasicBlock* block) const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ZoneDeque<Instruction*> instructions_; 204 ZoneDeque<Instruction*> instructions_;
203 BoolVector defined_; 205 BoolVector defined_;
204 BoolVector used_; 206 BoolVector used_;
205 }; 207 };
206 208
207 } // namespace compiler 209 } // namespace compiler
208 } // namespace internal 210 } // namespace internal
209 } // namespace v8 211 } // namespace v8
210 212
211 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 213 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698