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

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

Issue 2141953002: [Turbofan]: Add integer multiplication with overflow to typed lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@multiply
Patch Set: Code comments. Created 4 years, 5 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/redundancy-elimination.cc ('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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 IrOpcode::Value opcode) { 620 IrOpcode::Value opcode) {
621 switch (opcode) { 621 switch (opcode) {
622 case IrOpcode::kSpeculativeNumberAdd: 622 case IrOpcode::kSpeculativeNumberAdd:
623 return simplified()->CheckedInt32Add(); 623 return simplified()->CheckedInt32Add();
624 case IrOpcode::kSpeculativeNumberSubtract: 624 case IrOpcode::kSpeculativeNumberSubtract:
625 return simplified()->CheckedInt32Sub(); 625 return simplified()->CheckedInt32Sub();
626 case IrOpcode::kSpeculativeNumberDivide: 626 case IrOpcode::kSpeculativeNumberDivide:
627 return simplified()->CheckedInt32Div(); 627 return simplified()->CheckedInt32Div();
628 case IrOpcode::kSpeculativeNumberModulus: 628 case IrOpcode::kSpeculativeNumberModulus:
629 return simplified()->CheckedInt32Mod(); 629 return simplified()->CheckedInt32Mod();
630 case IrOpcode::kSpeculativeNumberMultiply:
631 return simplified()->CheckedInt32Mul();
630 default: 632 default:
631 UNREACHABLE(); 633 UNREACHABLE();
632 return nullptr; 634 return nullptr;
633 } 635 }
634 } 636 }
635 637
636 const Operator* RepresentationChanger::Uint32OperatorFor( 638 const Operator* RepresentationChanger::Uint32OperatorFor(
637 IrOpcode::Value opcode) { 639 IrOpcode::Value opcode) {
638 switch (opcode) { 640 switch (opcode) {
639 case IrOpcode::kNumberAdd: 641 case IrOpcode::kNumberAdd:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 } 809 }
808 810
809 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 811 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
810 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 812 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
811 node); 813 node);
812 } 814 }
813 815
814 } // namespace compiler 816 } // namespace compiler
815 } // namespace internal 817 } // namespace internal
816 } // namespace v8 818 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/redundancy-elimination.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698