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

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

Issue 1477753002: [turbofan] Implemented the optional Float32RoundTiesEven operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32trunc
Patch Set: Merging with the changed codebase 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 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 return Type::Number(); 2300 return Type::Number();
2301 } 2301 }
2302 2302
2303 2303
2304 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) { 2304 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) {
2305 // TODO(sigurds): We could have a tighter bound here. 2305 // TODO(sigurds): We could have a tighter bound here.
2306 return Type::Number(); 2306 return Type::Number();
2307 } 2307 }
2308 2308
2309 2309
2310 Type* Typer::Visitor::TypeFloat32RoundTiesEven(Node* node) {
2311 // TODO(sigurds): We could have a tighter bound here.
2312 return Type::Number();
2313 }
2314
2315
2310 Type* Typer::Visitor::TypeFloat64RoundTiesEven(Node* node) { 2316 Type* Typer::Visitor::TypeFloat64RoundTiesEven(Node* node) {
2311 // TODO(sigurds): We could have a tighter bound here. 2317 // TODO(sigurds): We could have a tighter bound here.
2312 return Type::Number(); 2318 return Type::Number();
2313 } 2319 }
2314 2320
2315 2321
2316 Type* Typer::Visitor::TypeFloat64ExtractLowWord32(Node* node) { 2322 Type* Typer::Visitor::TypeFloat64ExtractLowWord32(Node* node) {
2317 return Type::Signed32(); 2323 return Type::Signed32();
2318 } 2324 }
2319 2325
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 } 2373 }
2368 if (Type::IsInteger(*value)) { 2374 if (Type::IsInteger(*value)) {
2369 return Type::Range(value->Number(), value->Number(), zone()); 2375 return Type::Range(value->Number(), value->Number(), zone());
2370 } 2376 }
2371 return Type::Constant(value, zone()); 2377 return Type::Constant(value, zone());
2372 } 2378 }
2373 2379
2374 } // namespace compiler 2380 } // namespace compiler
2375 } // namespace internal 2381 } // namespace internal
2376 } // namespace v8 2382 } // 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