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

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

Issue 595963002: Extend JSBuiltinReducer to cover Math.sqrt as well. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment by Benedikt. Created 6 years, 3 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-unittest.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \ 105 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \
106 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \ 106 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \
107 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \ 107 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \
108 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \ 108 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \
109 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \ 109 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \
110 V(Float64Add, Operator::kCommutative, 2, 1) \ 110 V(Float64Add, Operator::kCommutative, 2, 1) \
111 V(Float64Sub, Operator::kNoProperties, 2, 1) \ 111 V(Float64Sub, Operator::kNoProperties, 2, 1) \
112 V(Float64Mul, Operator::kCommutative, 2, 1) \ 112 V(Float64Mul, Operator::kCommutative, 2, 1) \
113 V(Float64Div, Operator::kNoProperties, 2, 1) \ 113 V(Float64Div, Operator::kNoProperties, 2, 1) \
114 V(Float64Mod, Operator::kNoProperties, 2, 1) \ 114 V(Float64Mod, Operator::kNoProperties, 2, 1) \
115 V(Float64Sqrt, Operator::kNoProperties, 1, 1) \
115 V(Float64Equal, Operator::kCommutative, 2, 1) \ 116 V(Float64Equal, Operator::kCommutative, 2, 1) \
116 V(Float64LessThan, Operator::kNoProperties, 2, 1) \ 117 V(Float64LessThan, Operator::kNoProperties, 2, 1) \
117 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 1) 118 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 1)
118 119
119 120
120 #define MACHINE_TYPE_LIST(V) \ 121 #define MACHINE_TYPE_LIST(V) \
121 V(MachFloat32) \ 122 V(MachFloat32) \
122 V(MachFloat64) \ 123 V(MachFloat64) \
123 V(MachInt8) \ 124 V(MachInt8) \
124 V(MachUint8) \ 125 V(MachUint8) \
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 default: 235 default:
235 break; 236 break;
236 } 237 }
237 UNREACHABLE(); 238 UNREACHABLE();
238 return NULL; 239 return NULL;
239 } 240 }
240 241
241 } // namespace compiler 242 } // namespace compiler
242 } // namespace internal 243 } // namespace internal
243 } // namespace v8 244 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/machine-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698