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

Side by Side Diff: src/compiler/js-intrinsic-lowering.cc

Issue 1128133003: [turbofan] Make an OptionalOperator for MachineOperatorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: OPTIONAL macro Created 5 years, 6 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
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/machine-operator.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698