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

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

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/machine-operator.h ('k') | src/compiler/machine-operator-reducer.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 #include "src/compiler/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 77 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
78 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 78 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
79 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ 79 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \
80 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ 80 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \
81 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \ 81 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \
82 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ 82 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \
83 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \ 83 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \
84 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \ 84 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \
85 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ 85 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \
86 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \ 86 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \
87 V(Uint32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
87 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 88 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
88 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \ 89 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \
89 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 90 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
90 V(Int64Div, Operator::kNoProperties, 2, 0, 1) \ 91 V(Int64Div, Operator::kNoProperties, 2, 0, 1) \
91 V(Int64Mod, Operator::kNoProperties, 2, 0, 1) \ 92 V(Int64Mod, Operator::kNoProperties, 2, 0, 1) \
92 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \ 93 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \
93 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ 94 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \
94 V(Uint64Div, Operator::kNoProperties, 2, 0, 1) \ 95 V(Uint64Div, Operator::kNoProperties, 2, 0, 1) \
95 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \ 96 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \
96 V(Uint64Mod, Operator::kNoProperties, 2, 0, 1) \ 97 V(Uint64Mod, Operator::kNoProperties, 2, 0, 1) \
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 241
241 default: 242 default:
242 break; 243 break;
243 } 244 }
244 UNREACHABLE(); 245 UNREACHABLE();
245 return NULL; 246 return NULL;
246 } 247 }
247 } // namespace compiler 248 } // namespace compiler
248 } // namespace internal 249 } // namespace internal
249 } // namespace v8 250 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/machine-operator-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698