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

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

Issue 620773003: Rename Int32{UMod,UDiv} to Uint32{Div,Mod} and Int64{UMod,UDiv} to Uint64{Div,Mod}. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/machine-operator.h ('k') | src/compiler/machine-operator-reducer.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 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(Word64Sar, Operator::kNoProperties, 2, 1) \ 77 V(Word64Sar, Operator::kNoProperties, 2, 1) \
78 V(Word64Ror, Operator::kNoProperties, 2, 1) \ 78 V(Word64Ror, Operator::kNoProperties, 2, 1) \
79 V(Word64Equal, Operator::kCommutative, 2, 1) \ 79 V(Word64Equal, Operator::kCommutative, 2, 1) \
80 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 1) \ 80 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 1) \
81 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \ 81 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \
82 2) \ 82 2) \
83 V(Int32Sub, Operator::kNoProperties, 2, 1) \ 83 V(Int32Sub, Operator::kNoProperties, 2, 1) \
84 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 2) \ 84 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 2) \
85 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 1) \ 85 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 1) \
86 V(Int32Div, Operator::kNoProperties, 2, 1) \ 86 V(Int32Div, Operator::kNoProperties, 2, 1) \
87 V(Int32UDiv, Operator::kNoProperties, 2, 1) \
88 V(Int32Mod, Operator::kNoProperties, 2, 1) \ 87 V(Int32Mod, Operator::kNoProperties, 2, 1) \
89 V(Int32UMod, Operator::kNoProperties, 2, 1) \
90 V(Int32LessThan, Operator::kNoProperties, 2, 1) \ 88 V(Int32LessThan, Operator::kNoProperties, 2, 1) \
91 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 1) \ 89 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 1) \
90 V(Uint32Div, Operator::kNoProperties, 2, 1) \
92 V(Uint32LessThan, Operator::kNoProperties, 2, 1) \ 91 V(Uint32LessThan, Operator::kNoProperties, 2, 1) \
93 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 1) \ 92 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 1) \
93 V(Uint32Mod, Operator::kNoProperties, 2, 1) \
94 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 1) \ 94 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 1) \
95 V(Int64Sub, Operator::kNoProperties, 2, 1) \ 95 V(Int64Sub, Operator::kNoProperties, 2, 1) \
96 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 1) \ 96 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 1) \
97 V(Int64Div, Operator::kNoProperties, 2, 1) \ 97 V(Int64Div, Operator::kNoProperties, 2, 1) \
98 V(Int64UDiv, Operator::kNoProperties, 2, 1) \
99 V(Int64Mod, Operator::kNoProperties, 2, 1) \ 98 V(Int64Mod, Operator::kNoProperties, 2, 1) \
100 V(Int64UMod, Operator::kNoProperties, 2, 1) \
101 V(Int64LessThan, Operator::kNoProperties, 2, 1) \ 99 V(Int64LessThan, Operator::kNoProperties, 2, 1) \
102 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 1) \ 100 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 1) \
101 V(Uint64Div, Operator::kNoProperties, 2, 1) \
103 V(Uint64LessThan, Operator::kNoProperties, 2, 1) \ 102 V(Uint64LessThan, Operator::kNoProperties, 2, 1) \
103 V(Uint64Mod, Operator::kNoProperties, 2, 1) \
104 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 1) \ 104 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 1) \
105 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 1) \ 105 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 1) \
106 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 1) \ 106 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 1) \
107 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 1) \ 107 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 1) \
108 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 1) \ 108 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 1) \
109 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \ 109 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \
110 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \ 110 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \
111 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \ 111 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \
112 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \ 112 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \
113 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \ 113 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 default: 239 default:
240 break; 240 break;
241 } 241 }
242 UNREACHABLE(); 242 UNREACHABLE();
243 return NULL; 243 return NULL;
244 } 244 }
245 245
246 } // namespace compiler 246 } // namespace compiler
247 } // namespace internal 247 } // namespace internal
248 } // namespace v8 248 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698