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

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

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 Type* Typer::Visitor::TypeTruncateFloat64ToInt32(Node* node) { 2100 Type* Typer::Visitor::TypeTruncateFloat64ToInt32(Node* node) {
2101 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); 2101 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone());
2102 } 2102 }
2103 2103
2104 2104
2105 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) { 2105 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) {
2106 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); 2106 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone());
2107 } 2107 }
2108 2108
2109 2109
2110 Type* Typer::Visitor::TypeRoundInt64ToFloat32(Node* node) {
2111 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone());
2112 }
2113
2114
2110 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) { 2115 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) {
2111 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); 2116 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone());
2112 } 2117 }
2113 2118
2114 2119
2115 Type* Typer::Visitor::TypeBitcastFloat32ToInt32(Node* node) { 2120 Type* Typer::Visitor::TypeBitcastFloat32ToInt32(Node* node) {
2116 return Type::Number(); 2121 return Type::Number();
2117 } 2122 }
2118 2123
2119 2124
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 } 2292 }
2288 if (Type::IsInteger(*value)) { 2293 if (Type::IsInteger(*value)) {
2289 return Type::Range(value->Number(), value->Number(), zone()); 2294 return Type::Range(value->Number(), value->Number(), zone());
2290 } 2295 }
2291 return Type::Constant(value, zone()); 2296 return Type::Constant(value, zone());
2292 } 2297 }
2293 2298
2294 } // namespace compiler 2299 } // namespace compiler
2295 } // namespace internal 2300 } // namespace internal
2296 } // namespace v8 2301 } // 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