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

Side by Side Diff: src/compiler/typer.cc

Issue 2101123005: [turbofan] Introduce integer multiplication with overflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. 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/raw-machine-assembler.h ('k') | src/compiler/verifier.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 Type* Typer::Visitor::TypeInt32Sub(Node* node) { return Type::Integral32(); } 2000 Type* Typer::Visitor::TypeInt32Sub(Node* node) { return Type::Integral32(); }
2001 2001
2002 2002
2003 Type* Typer::Visitor::TypeInt32SubWithOverflow(Node* node) { 2003 Type* Typer::Visitor::TypeInt32SubWithOverflow(Node* node) {
2004 return Type::Internal(); 2004 return Type::Internal();
2005 } 2005 }
2006 2006
2007 2007
2008 Type* Typer::Visitor::TypeInt32Mul(Node* node) { return Type::Integral32(); } 2008 Type* Typer::Visitor::TypeInt32Mul(Node* node) { return Type::Integral32(); }
2009 2009
2010 Type* Typer::Visitor::TypeInt32MulWithOverflow(Node* node) {
2011 return Type::Internal();
2012 }
2010 2013
2011 Type* Typer::Visitor::TypeInt32MulHigh(Node* node) { return Type::Signed32(); } 2014 Type* Typer::Visitor::TypeInt32MulHigh(Node* node) { return Type::Signed32(); }
2012 2015
2013 2016
2014 Type* Typer::Visitor::TypeInt32Div(Node* node) { return Type::Integral32(); } 2017 Type* Typer::Visitor::TypeInt32Div(Node* node) { return Type::Integral32(); }
2015 2018
2016 2019
2017 Type* Typer::Visitor::TypeInt32Mod(Node* node) { return Type::Integral32(); } 2020 Type* Typer::Visitor::TypeInt32Mod(Node* node) { return Type::Integral32(); }
2018 2021
2019 2022
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 Type* Typer::Visitor::TypeInt64Sub(Node* node) { return Type::Internal(); } 2058 Type* Typer::Visitor::TypeInt64Sub(Node* node) { return Type::Internal(); }
2056 2059
2057 2060
2058 Type* Typer::Visitor::TypeInt64SubWithOverflow(Node* node) { 2061 Type* Typer::Visitor::TypeInt64SubWithOverflow(Node* node) {
2059 return Type::Internal(); 2062 return Type::Internal();
2060 } 2063 }
2061 2064
2062 2065
2063 Type* Typer::Visitor::TypeInt64Mul(Node* node) { return Type::Internal(); } 2066 Type* Typer::Visitor::TypeInt64Mul(Node* node) { return Type::Internal(); }
2064 2067
2065
2066 Type* Typer::Visitor::TypeInt64Div(Node* node) { return Type::Internal(); } 2068 Type* Typer::Visitor::TypeInt64Div(Node* node) { return Type::Internal(); }
2067 2069
2068 2070
2069 Type* Typer::Visitor::TypeInt64Mod(Node* node) { return Type::Internal(); } 2071 Type* Typer::Visitor::TypeInt64Mod(Node* node) { return Type::Internal(); }
2070 2072
2071 2073
2072 Type* Typer::Visitor::TypeInt64LessThan(Node* node) { return Type::Boolean(); } 2074 Type* Typer::Visitor::TypeInt64LessThan(Node* node) { return Type::Boolean(); }
2073 2075
2074 2076
2075 Type* Typer::Visitor::TypeInt64LessThanOrEqual(Node* node) { 2077 Type* Typer::Visitor::TypeInt64LessThanOrEqual(Node* node) {
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2517 } 2519 }
2518 if (Type::IsInteger(*value)) { 2520 if (Type::IsInteger(*value)) {
2519 return Type::Range(value->Number(), value->Number(), zone()); 2521 return Type::Range(value->Number(), value->Number(), zone());
2520 } 2522 }
2521 return Type::Constant(value, zone()); 2523 return Type::Constant(value, zone());
2522 } 2524 }
2523 2525
2524 } // namespace compiler 2526 } // namespace compiler
2525 } // namespace internal 2527 } // namespace internal
2526 } // namespace v8 2528 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698