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

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

Issue 738073002: [turbofan]: More optimizations to add and subtract operations on x64 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return Features(CpuFeatures::SupportedFeatures()); 91 return Features(CpuFeatures::SupportedFeatures());
92 } 92 }
93 93
94 // TODO(sigurds) This should take a CpuFeatures argument. 94 // TODO(sigurds) This should take a CpuFeatures argument.
95 static MachineOperatorBuilder::Flags SupportedMachineOperatorFlags(); 95 static MachineOperatorBuilder::Flags SupportedMachineOperatorFlags();
96 96
97 // =========================================================================== 97 // ===========================================================================
98 // ============ Architecture-independent graph covering methods. ============= 98 // ============ Architecture-independent graph covering methods. =============
99 // =========================================================================== 99 // ===========================================================================
100 100
101 bool ValueOwnedBy(Node* owner, Node* value) const;
102
101 // Used in pattern matching during code generation. 103 // Used in pattern matching during code generation.
102 // Check if {node} can be covered while generating code for the current 104 // Check if {node} can be covered while generating code for the current
103 // instruction. A node can be covered if the {user} of the node has the only 105 // instruction. A node can be covered if the {user} of the node has the only
104 // edge and the two are in the same basic block. 106 // edge and the two are in the same basic block.
105 bool CanCover(Node* user, Node* node) const; 107 bool CanCover(Node* user, Node* node) const;
106 108
107 // Checks if {node} was already defined, and therefore code was already 109 // Checks if {node} was already defined, and therefore code was already
108 // generated for it. 110 // generated for it.
109 bool IsDefined(Node* node) const; 111 bool IsDefined(Node* node) const;
110 112
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 ZoneDeque<Instruction*> instructions_; 223 ZoneDeque<Instruction*> instructions_;
222 BoolVector defined_; 224 BoolVector defined_;
223 BoolVector used_; 225 BoolVector used_;
224 }; 226 };
225 227
226 } // namespace compiler 228 } // namespace compiler
227 } // namespace internal 229 } // namespace internal
228 } // namespace v8 230 } // namespace v8
229 231
230 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 232 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | src/compiler/instruction-selector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698