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

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

Issue 1583323004: [turbofan] Add the TruncateFloat32ToInt32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a small bug Created 4 years, 11 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); 2138 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone());
2139 } 2139 }
2140 2140
2141 2141
2142 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { 2142 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) {
2143 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), 2143 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(),
2144 zone()); 2144 zone());
2145 } 2145 }
2146 2146
2147 2147
2148 Type* Typer::Visitor::TypeTruncateFloat32ToInt32(Node* node) {
2149 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone());
2150 }
2151
2152
2148 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { 2153 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) {
2149 return Type::Internal(); 2154 return Type::Internal();
2150 } 2155 }
2151 2156
2152 2157
2153 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { 2158 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) {
2154 return Type::Internal(); 2159 return Type::Internal();
2155 } 2160 }
2156 2161
2157 2162
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 } 2436 }
2432 if (Type::IsInteger(*value)) { 2437 if (Type::IsInteger(*value)) {
2433 return Type::Range(value->Number(), value->Number(), zone()); 2438 return Type::Range(value->Number(), value->Number(), zone());
2434 } 2439 }
2435 return Type::Constant(value, zone()); 2440 return Type::Constant(value, zone());
2436 } 2441 }
2437 2442
2438 } // namespace compiler 2443 } // namespace compiler
2439 } // namespace internal 2444 } // namespace internal
2440 } // namespace v8 2445 } // 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