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

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

Issue 1044793002: [turbofan] Add backend support for float32 operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MachineOperator unit tests. Created 5 years, 8 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
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/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 Type::Signed32(), Type::UntaggedSigned32(), zone())); 2063 Type::Signed32(), Type::UntaggedSigned32(), zone()));
2064 } 2064 }
2065 2065
2066 2066
2067 Bounds Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) { 2067 Bounds Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) {
2068 return Bounds(Type::Intersect( 2068 return Bounds(Type::Intersect(
2069 Type::Signed32(), Type::UntaggedSigned32(), zone())); 2069 Type::Signed32(), Type::UntaggedSigned32(), zone()));
2070 } 2070 }
2071 2071
2072 2072
2073 Bounds Typer::Visitor::TypeFloat32Add(Node* node) {
2074 return Bounds(Type::Number());
2075 }
2076
2077
2078 Bounds Typer::Visitor::TypeFloat32Sub(Node* node) {
2079 return Bounds(Type::Number());
2080 }
2081
2082
2083 Bounds Typer::Visitor::TypeFloat32Mul(Node* node) {
2084 return Bounds(Type::Number());
2085 }
2086
2087
2088 Bounds Typer::Visitor::TypeFloat32Div(Node* node) {
2089 return Bounds(Type::Number());
2090 }
2091
2092
2093 Bounds Typer::Visitor::TypeFloat32Max(Node* node) {
2094 return Bounds(Type::Number());
2095 }
2096
2097
2098 Bounds Typer::Visitor::TypeFloat32Min(Node* node) {
2099 return Bounds(Type::Number());
2100 }
2101
2102
2103 Bounds Typer::Visitor::TypeFloat32Sqrt(Node* node) {
2104 return Bounds(Type::Number());
2105 }
2106
2107
2108 Bounds Typer::Visitor::TypeFloat32Equal(Node* node) {
2109 return Bounds(Type::Boolean());
2110 }
2111
2112
2113 Bounds Typer::Visitor::TypeFloat32LessThan(Node* node) {
2114 return Bounds(Type::Boolean());
2115 }
2116
2117
2118 Bounds Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) {
2119 return Bounds(Type::Boolean());
2120 }
2121
2122
2073 Bounds Typer::Visitor::TypeFloat64Add(Node* node) { 2123 Bounds Typer::Visitor::TypeFloat64Add(Node* node) {
2074 return Bounds(Type::Number()); 2124 return Bounds(Type::Number());
2075 } 2125 }
2076 2126
2077 2127
2078 Bounds Typer::Visitor::TypeFloat64Sub(Node* node) { 2128 Bounds Typer::Visitor::TypeFloat64Sub(Node* node) {
2079 return Bounds(Type::Number()); 2129 return Bounds(Type::Number());
2080 } 2130 }
2081 2131
2082 2132
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2301 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2252 #undef TYPED_ARRAY_CASE 2302 #undef TYPED_ARRAY_CASE
2253 } 2303 }
2254 } 2304 }
2255 return Type::Constant(value, zone()); 2305 return Type::Constant(value, zone());
2256 } 2306 }
2257 2307
2258 } // namespace compiler 2308 } // namespace compiler
2259 } // namespace internal 2309 } // namespace internal
2260 } // namespace v8 2310 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698