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

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

Issue 1438013003: [turbofan] Implemented the RoundUint64ToFloat32 TurboFan operator for x64, arm64, (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed the test to make it platform independent. 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
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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 Type* Typer::Visitor::TypeRoundInt64ToFloat32(Node* node) { 2113 Type* Typer::Visitor::TypeRoundInt64ToFloat32(Node* node) {
2114 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); 2114 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone());
2115 } 2115 }
2116 2116
2117 2117
2118 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) { 2118 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) {
2119 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); 2119 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone());
2120 } 2120 }
2121 2121
2122 2122
2123 Type* Typer::Visitor::TypeRoundUint64ToFloat32(Node* node) {
2124 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone());
2125 }
2126
2127
2123 Type* Typer::Visitor::TypeRoundUint64ToFloat64(Node* node) { 2128 Type* Typer::Visitor::TypeRoundUint64ToFloat64(Node* node) {
2124 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); 2129 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone());
2125 } 2130 }
2126 2131
2127 2132
2128 Type* Typer::Visitor::TypeBitcastFloat32ToInt32(Node* node) { 2133 Type* Typer::Visitor::TypeBitcastFloat32ToInt32(Node* node) {
2129 return Type::Number(); 2134 return Type::Number();
2130 } 2135 }
2131 2136
2132 2137
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 } 2305 }
2301 if (Type::IsInteger(*value)) { 2306 if (Type::IsInteger(*value)) {
2302 return Type::Range(value->Number(), value->Number(), zone()); 2307 return Type::Range(value->Number(), value->Number(), zone());
2303 } 2308 }
2304 return Type::Constant(value, zone()); 2309 return Type::Constant(value, zone());
2305 } 2310 }
2306 2311
2307 } // namespace compiler 2312 } // namespace compiler
2308 } // namespace internal 2313 } // namespace internal
2309 } // namespace v8 2314 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698