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

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

Issue 1468303005: [turbofan] Implemented the optional Float32RoundTruncate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32roundup
Patch Set: Apparently std::nearbyint does not exist on all platforms. Created 5 years 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
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/instruction-selector-mips.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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \ 183 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \
184 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \ 184 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \
185 V(Float32Max, Operator::kNoProperties, 2, 0, 1) \ 185 V(Float32Max, Operator::kNoProperties, 2, 0, 1) \
186 V(Float32Min, Operator::kNoProperties, 2, 0, 1) \ 186 V(Float32Min, Operator::kNoProperties, 2, 0, 1) \
187 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \ 187 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \
188 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \ 188 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \
189 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \ 189 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \
190 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \ 190 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \
191 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \ 191 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \
192 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \ 192 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \
193 V(Float32RoundTruncate, Operator::kNoProperties, 1, 0, 1) \
193 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ 194 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \
194 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ 195 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \
195 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1) 196 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1)
196 197
197 198
198 #define MACHINE_TYPE_LIST(V) \ 199 #define MACHINE_TYPE_LIST(V) \
199 V(MachFloat32) \ 200 V(MachFloat32) \
200 V(MachFloat64) \ 201 V(MachFloat64) \
201 V(MachInt8) \ 202 V(MachInt8) \
202 V(MachUint8) \ 203 V(MachUint8) \
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 default: 410 default:
410 break; 411 break;
411 } 412 }
412 UNREACHABLE(); 413 UNREACHABLE();
413 return nullptr; 414 return nullptr;
414 } 415 }
415 416
416 } // namespace compiler 417 } // namespace compiler
417 } // namespace internal 418 } // namespace internal
418 } // namespace v8 419 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698