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

Side by Side Diff: src/compiler/representation-change.cc

Issue 1971163002: [turbofan] Fix optimized lowering of Math.imul. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittests. Reorder as pointed out by Michi. Created 4 years, 7 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/opcodes.h ('k') | src/compiler/simplified-lowering.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 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/representation-change.h" 5 #include "src/compiler/representation-change.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 case IrOpcode::kNumberModulus: 484 case IrOpcode::kNumberModulus:
485 return machine()->Uint32Mod(); 485 return machine()->Uint32Mod();
486 case IrOpcode::kNumberEqual: 486 case IrOpcode::kNumberEqual:
487 return machine()->Word32Equal(); 487 return machine()->Word32Equal();
488 case IrOpcode::kNumberLessThan: 488 case IrOpcode::kNumberLessThan:
489 return machine()->Uint32LessThan(); 489 return machine()->Uint32LessThan();
490 case IrOpcode::kNumberLessThanOrEqual: 490 case IrOpcode::kNumberLessThanOrEqual:
491 return machine()->Uint32LessThanOrEqual(); 491 return machine()->Uint32LessThanOrEqual();
492 case IrOpcode::kNumberClz32: 492 case IrOpcode::kNumberClz32:
493 return machine()->Word32Clz(); 493 return machine()->Word32Clz();
494 case IrOpcode::kNumberImul:
495 return machine()->Int32Mul();
494 default: 496 default:
495 UNREACHABLE(); 497 UNREACHABLE();
496 return nullptr; 498 return nullptr;
497 } 499 }
498 } 500 }
499 501
500 502
501 const Operator* RepresentationChanger::Float64OperatorFor( 503 const Operator* RepresentationChanger::Float64OperatorFor(
502 IrOpcode::Value opcode) { 504 IrOpcode::Value opcode) {
503 switch (opcode) { 505 switch (opcode) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 568 }
567 569
568 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 570 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
569 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 571 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
570 node); 572 node);
571 } 573 }
572 574
573 } // namespace compiler 575 } // namespace compiler
574 } // namespace internal 576 } // namespace internal
575 } // namespace v8 577 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698