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

Side by Side Diff: src/compiler/machine-operator.h

Issue 697663003: [turbofan] Also optimize unsigned division by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Slight improvement 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
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_MACHINE_OPERATOR_H_ 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ 6 #define V8_COMPILER_MACHINE_OPERATOR_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const Operator* Int32Mul(); 101 const Operator* Int32Mul();
102 const Operator* Int32MulHigh(); 102 const Operator* Int32MulHigh();
103 const Operator* Int32Div(); 103 const Operator* Int32Div();
104 const Operator* Int32Mod(); 104 const Operator* Int32Mod();
105 const Operator* Int32LessThan(); 105 const Operator* Int32LessThan();
106 const Operator* Int32LessThanOrEqual(); 106 const Operator* Int32LessThanOrEqual();
107 const Operator* Uint32Div(); 107 const Operator* Uint32Div();
108 const Operator* Uint32LessThan(); 108 const Operator* Uint32LessThan();
109 const Operator* Uint32LessThanOrEqual(); 109 const Operator* Uint32LessThanOrEqual();
110 const Operator* Uint32Mod(); 110 const Operator* Uint32Mod();
111 const Operator* Uint32MulHigh();
111 bool Int32DivIsSafe() const { return flags_ & kInt32DivIsSafe; } 112 bool Int32DivIsSafe() const { return flags_ & kInt32DivIsSafe; }
112 bool Int32ModIsSafe() const { return flags_ & kInt32ModIsSafe; } 113 bool Int32ModIsSafe() const { return flags_ & kInt32ModIsSafe; }
113 bool Uint32DivIsSafe() const { return flags_ & kUint32DivIsSafe; } 114 bool Uint32DivIsSafe() const { return flags_ & kUint32DivIsSafe; }
114 bool Uint32ModIsSafe() const { return flags_ & kUint32ModIsSafe; } 115 bool Uint32ModIsSafe() const { return flags_ & kUint32ModIsSafe; }
115 116
116 const Operator* Int64Add(); 117 const Operator* Int64Add();
117 const Operator* Int64Sub(); 118 const Operator* Int64Sub();
118 const Operator* Int64Mul(); 119 const Operator* Int64Mul();
119 const Operator* Int64Div(); 120 const Operator* Int64Div();
120 const Operator* Int64Mod(); 121 const Operator* Int64Mod();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder); 217 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder);
217 }; 218 };
218 219
219 220
220 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 221 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
221 } // namespace compiler 222 } // namespace compiler
222 } // namespace internal 223 } // namespace internal
223 } // namespace v8 224 } // namespace v8
224 225
225 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 226 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698