OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/js-intrinsic-lowering.h" | 5 #include "src/compiler/js-intrinsic-lowering.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 | 8 |
9 #include "src/compiler/access-builder.h" | 9 #include "src/compiler/access-builder.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 value, effect, control); | 272 value, effect, control); |
273 } | 273 } |
274 | 274 |
275 | 275 |
276 Reduction JSIntrinsicLowering::ReduceMathClz32(Node* node) { | 276 Reduction JSIntrinsicLowering::ReduceMathClz32(Node* node) { |
277 return Change(node, machine()->Word32Clz()); | 277 return Change(node, machine()->Word32Clz()); |
278 } | 278 } |
279 | 279 |
280 | 280 |
281 Reduction JSIntrinsicLowering::ReduceMathFloor(Node* node) { | 281 Reduction JSIntrinsicLowering::ReduceMathFloor(Node* node) { |
282 if (!machine()->HasFloat64RoundDown()) return NoChange(); | 282 if (!machine()->Float64RoundDown().IsSupported()) return NoChange(); |
283 return Change(node, machine()->Float64RoundDown()); | 283 return Change(node, machine()->Float64RoundDown().op()); |
284 } | 284 } |
285 | 285 |
286 | 286 |
287 Reduction JSIntrinsicLowering::ReduceMathSqrt(Node* node) { | 287 Reduction JSIntrinsicLowering::ReduceMathSqrt(Node* node) { |
288 return Change(node, machine()->Float64Sqrt()); | 288 return Change(node, machine()->Float64Sqrt()); |
289 } | 289 } |
290 | 290 |
291 | 291 |
292 Reduction JSIntrinsicLowering::ReduceSeqStringGetChar( | 292 Reduction JSIntrinsicLowering::ReduceSeqStringGetChar( |
293 Node* node, String::Encoding encoding) { | 293 Node* node, String::Encoding encoding) { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 } | 544 } |
545 | 545 |
546 | 546 |
547 MachineOperatorBuilder* JSIntrinsicLowering::machine() const { | 547 MachineOperatorBuilder* JSIntrinsicLowering::machine() const { |
548 return jsgraph()->machine(); | 548 return jsgraph()->machine(); |
549 } | 549 } |
550 | 550 |
551 } // namespace compiler | 551 } // namespace compiler |
552 } // namespace internal | 552 } // namespace internal |
553 } // namespace v8 | 553 } // namespace v8 |
OLD | NEW |