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

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: Add unittest. Created 6 years, 2 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/machine-operator.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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 bool IsSupported(CpuFeature feature) const { 79 bool IsSupported(CpuFeature feature) const {
80 return features_.Contains(feature); 80 return features_.Contains(feature);
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 // TODO(sigurds) This should take a CpuFeatures argument.
89 static MachineOperatorBuilder::Flags SupportedMachineOperatorFlags();
90
88 // =========================================================================== 91 // ===========================================================================
89 // ============ Architecture-independent graph covering methods. ============= 92 // ============ Architecture-independent graph covering methods. =============
90 // =========================================================================== 93 // ===========================================================================
91 94
92 // Used in pattern matching during code generation. 95 // Used in pattern matching during code generation.
93 // Check if {node} can be covered while generating code for the current 96 // Check if {node} can be covered while generating code for the current
94 // instruction. A node can be covered if the {user} of the node has the only 97 // instruction. A node can be covered if the {user} of the node has the only
95 // edge and the two are in the same basic block. 98 // edge and the two are in the same basic block.
96 bool CanCover(Node* user, Node* node) const; 99 bool CanCover(Node* user, Node* node) const;
97 100
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ZoneDeque<Instruction*> instructions_; 205 ZoneDeque<Instruction*> instructions_;
203 BoolVector defined_; 206 BoolVector defined_;
204 BoolVector used_; 207 BoolVector used_;
205 }; 208 };
206 209
207 } // namespace compiler 210 } // namespace compiler
208 } // namespace internal 211 } // namespace internal
209 } // namespace v8 212 } // namespace v8
210 213
211 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 214 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698