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

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

Issue 1468303005: [turbofan] Implemented the optional Float32RoundTruncate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32roundup
Patch Set: Apparently std::nearbyint does not exist on all platforms. Created 5 years 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 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 return Type::Number(); 2282 return Type::Number();
2283 } 2283 }
2284 2284
2285 2285
2286 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) { 2286 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) {
2287 // TODO(sigurds): We could have a tighter bound here. 2287 // TODO(sigurds): We could have a tighter bound here.
2288 return Type::Number(); 2288 return Type::Number();
2289 } 2289 }
2290 2290
2291 2291
2292 Type* Typer::Visitor::TypeFloat32RoundTruncate(Node* node) {
2293 // TODO(sigurds): We could have a tighter bound here.
2294 return Type::Number();
2295 }
2296
2297
2292 Type* Typer::Visitor::TypeFloat64RoundTruncate(Node* node) { 2298 Type* Typer::Visitor::TypeFloat64RoundTruncate(Node* node) {
2293 // TODO(sigurds): We could have a tighter bound here. 2299 // TODO(sigurds): We could have a tighter bound here.
2294 return Type::Number(); 2300 return Type::Number();
2295 } 2301 }
2296 2302
2297 2303
2298 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) { 2304 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) {
2299 // TODO(sigurds): We could have a tighter bound here. 2305 // TODO(sigurds): We could have a tighter bound here.
2300 return Type::Number(); 2306 return Type::Number();
2301 } 2307 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 } 2367 }
2362 if (Type::IsInteger(*value)) { 2368 if (Type::IsInteger(*value)) {
2363 return Type::Range(value->Number(), value->Number(), zone()); 2369 return Type::Range(value->Number(), value->Number(), zone());
2364 } 2370 }
2365 return Type::Constant(value, zone()); 2371 return Type::Constant(value, zone());
2366 } 2372 }
2367 2373
2368 } // namespace compiler 2374 } // namespace compiler
2369 } // namespace internal 2375 } // namespace internal
2370 } // namespace v8 2376 } // 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