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

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

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type is number now. Created 4 years, 4 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 <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 2096
2097 Type* Typer::Visitor::TypeFloat32LessThan(Node* node) { 2097 Type* Typer::Visitor::TypeFloat32LessThan(Node* node) {
2098 return Type::Boolean(); 2098 return Type::Boolean();
2099 } 2099 }
2100 2100
2101 2101
2102 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) { 2102 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) {
2103 return Type::Boolean(); 2103 return Type::Boolean();
2104 } 2104 }
2105 2105
2106 Type* Typer::Visitor::TypeFloat32Max(Node* node) { return Type::Number(); }
2107
2108 Type* Typer::Visitor::TypeFloat32Min(Node* node) { return Type::Number(); }
2106 2109
2107 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } 2110 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); }
2108 2111
2109 2112
2110 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } 2113 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); }
2111 2114
2112 Type* Typer::Visitor::TypeFloat64Neg(Node* node) { return Type::Number(); } 2115 Type* Typer::Visitor::TypeFloat64Neg(Node* node) { return Type::Number(); }
2113 2116
2114 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } 2117 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); }
2115 2118
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 } 2343 }
2341 if (Type::IsInteger(*value)) { 2344 if (Type::IsInteger(*value)) {
2342 return Type::Range(value->Number(), value->Number(), zone()); 2345 return Type::Range(value->Number(), value->Number(), zone());
2343 } 2346 }
2344 return Type::Constant(value, zone()); 2347 return Type::Constant(value, zone());
2345 } 2348 }
2346 2349
2347 } // namespace compiler 2350 } // namespace compiler
2348 } // namespace internal 2351 } // namespace internal
2349 } // namespace v8 2352 } // 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