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

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

Issue 1544743004: [turbofan] Add Int64(Add|Sub)WithOverflow support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add truncation to the int64-sub-with-overflow-branch test Created 4 years, 12 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 2063 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 2074
2075 2075
2076 Type* Typer::Visitor::TypeUint32MulHigh(Node* node) { 2076 Type* Typer::Visitor::TypeUint32MulHigh(Node* node) {
2077 return Type::Unsigned32(); 2077 return Type::Unsigned32();
2078 } 2078 }
2079 2079
2080 2080
2081 Type* Typer::Visitor::TypeInt64Add(Node* node) { return Type::Internal(); } 2081 Type* Typer::Visitor::TypeInt64Add(Node* node) { return Type::Internal(); }
2082 2082
2083 2083
2084 Type* Typer::Visitor::TypeInt64AddWithOverflow(Node* node) {
2085 return Type::Internal();
2086 }
2087
2088
2084 Type* Typer::Visitor::TypeInt64Sub(Node* node) { return Type::Internal(); } 2089 Type* Typer::Visitor::TypeInt64Sub(Node* node) { return Type::Internal(); }
2085 2090
2086 2091
2092 Type* Typer::Visitor::TypeInt64SubWithOverflow(Node* node) {
2093 return Type::Internal();
2094 }
2095
2096
2087 Type* Typer::Visitor::TypeInt64Mul(Node* node) { return Type::Internal(); } 2097 Type* Typer::Visitor::TypeInt64Mul(Node* node) { return Type::Internal(); }
2088 2098
2089 2099
2090 Type* Typer::Visitor::TypeInt64Div(Node* node) { return Type::Internal(); } 2100 Type* Typer::Visitor::TypeInt64Div(Node* node) { return Type::Internal(); }
2091 2101
2092 2102
2093 Type* Typer::Visitor::TypeInt64Mod(Node* node) { return Type::Internal(); } 2103 Type* Typer::Visitor::TypeInt64Mod(Node* node) { return Type::Internal(); }
2094 2104
2095 2105
2096 Type* Typer::Visitor::TypeInt64LessThan(Node* node) { return Type::Boolean(); } 2106 Type* Typer::Visitor::TypeInt64LessThan(Node* node) { return Type::Boolean(); }
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 } 2427 }
2418 if (Type::IsInteger(*value)) { 2428 if (Type::IsInteger(*value)) {
2419 return Type::Range(value->Number(), value->Number(), zone()); 2429 return Type::Range(value->Number(), value->Number(), zone());
2420 } 2430 }
2421 return Type::Constant(value, zone()); 2431 return Type::Constant(value, zone());
2422 } 2432 }
2423 2433
2424 } // namespace compiler 2434 } // namespace compiler
2425 } // namespace internal 2435 } // namespace internal
2426 } // namespace v8 2436 } // 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