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

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

Issue 1471913006: [turbofan] Implemented the optional Float32RoundDown operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a debugging printf. 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
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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) { 2258 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) {
2259 return Type::Boolean(); 2259 return Type::Boolean();
2260 } 2260 }
2261 2261
2262 2262
2263 Type* Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) { 2263 Type* Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) {
2264 return Type::Boolean(); 2264 return Type::Boolean();
2265 } 2265 }
2266 2266
2267 2267
2268 Type* Typer::Visitor::TypeFloat32RoundDown(Node* node) {
2269 // TODO(sigurds): We could have a tighter bound here.
2270 return Type::Number();
2271 }
2272
2273
2268 Type* Typer::Visitor::TypeFloat64RoundDown(Node* node) { 2274 Type* Typer::Visitor::TypeFloat64RoundDown(Node* node) {
2269 // TODO(sigurds): We could have a tighter bound here. 2275 // TODO(sigurds): We could have a tighter bound here.
2270 return Type::Number(); 2276 return Type::Number();
2271 } 2277 }
2272 2278
2273 2279
2274 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) { 2280 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) {
2275 // TODO(sigurds): We could have a tighter bound here. 2281 // TODO(sigurds): We could have a tighter bound here.
2276 return Type::Number(); 2282 return Type::Number();
2277 } 2283 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 } 2355 }
2350 if (Type::IsInteger(*value)) { 2356 if (Type::IsInteger(*value)) {
2351 return Type::Range(value->Number(), value->Number(), zone()); 2357 return Type::Range(value->Number(), value->Number(), zone());
2352 } 2358 }
2353 return Type::Constant(value, zone()); 2359 return Type::Constant(value, zone());
2354 } 2360 }
2355 2361
2356 } // namespace compiler 2362 } // namespace compiler
2357 } // namespace internal 2363 } // namespace internal
2358 } // namespace v8 2364 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698