| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 238                 value, effect, control); | 238                 value, effect, control); | 
| 239 } | 239 } | 
| 240 | 240 | 
| 241 | 241 | 
| 242 Reduction JSIntrinsicLowering::ReduceMathClz32(Node* node) { | 242 Reduction JSIntrinsicLowering::ReduceMathClz32(Node* node) { | 
| 243   return Change(node, machine()->Word32Clz()); | 243   return Change(node, machine()->Word32Clz()); | 
| 244 } | 244 } | 
| 245 | 245 | 
| 246 | 246 | 
| 247 Reduction JSIntrinsicLowering::ReduceMathFloor(Node* node) { | 247 Reduction JSIntrinsicLowering::ReduceMathFloor(Node* node) { | 
| 248   if (!machine()->HasFloat64RoundDown()) return NoChange(); | 248   if (!machine()->Float64RoundDown().supported()) return NoChange(); | 
| 249   return Change(node, machine()->Float64RoundDown()); | 249   return Change(node, machine()->Float64RoundDown().op()); | 
| 250 } | 250 } | 
| 251 | 251 | 
| 252 | 252 | 
| 253 Reduction JSIntrinsicLowering::ReduceMathSqrt(Node* node) { | 253 Reduction JSIntrinsicLowering::ReduceMathSqrt(Node* node) { | 
| 254   return Change(node, machine()->Float64Sqrt()); | 254   return Change(node, machine()->Float64Sqrt()); | 
| 255 } | 255 } | 
| 256 | 256 | 
| 257 | 257 | 
| 258 Reduction JSIntrinsicLowering::ReduceSeqStringGetChar( | 258 Reduction JSIntrinsicLowering::ReduceSeqStringGetChar( | 
| 259     Node* node, String::Encoding encoding) { | 259     Node* node, String::Encoding encoding) { | 
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 425 } | 425 } | 
| 426 | 426 | 
| 427 | 427 | 
| 428 MachineOperatorBuilder* JSIntrinsicLowering::machine() const { | 428 MachineOperatorBuilder* JSIntrinsicLowering::machine() const { | 
| 429   return jsgraph()->machine(); | 429   return jsgraph()->machine(); | 
| 430 } | 430 } | 
| 431 | 431 | 
| 432 }  // namespace compiler | 432 }  // namespace compiler | 
| 433 }  // namespace internal | 433 }  // namespace internal | 
| 434 }  // namespace v8 | 434 }  // namespace v8 | 
| OLD | NEW | 
|---|