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

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

Issue 1973493003: [turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan for wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/s390/instruction-selector-s390.cc ('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 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 Type* Typer::Visitor::TypeBitcastInt64ToFloat64(Node* node) { 2336 Type* Typer::Visitor::TypeBitcastInt64ToFloat64(Node* node) {
2337 return Type::Number(); 2337 return Type::Number();
2338 } 2338 }
2339 2339
2340 2340
2341 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } 2341 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); }
2342 2342
2343 2343
2344 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } 2344 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); }
2345 2345
2346 Type* Typer::Visitor::TypeFloat32SubPreserveNan(Node* node) {
2347 return Type::Number();
2348 }
2346 2349
2347 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } 2350 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); }
2348 2351
2349 2352
2350 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } 2353 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); }
2351 2354
2352 2355
2353 Type* Typer::Visitor::TypeFloat32Max(Node* node) { return Type::Number(); } 2356 Type* Typer::Visitor::TypeFloat32Max(Node* node) { return Type::Number(); }
2354 2357
2355 2358
(...skipping 20 matching lines...) Expand all
2376 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) { 2379 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) {
2377 return Type::Boolean(); 2380 return Type::Boolean();
2378 } 2381 }
2379 2382
2380 2383
2381 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } 2384 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); }
2382 2385
2383 2386
2384 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } 2387 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); }
2385 2388
2389 Type* Typer::Visitor::TypeFloat64SubPreserveNan(Node* node) {
2390 return Type::Number();
2391 }
2386 2392
2387 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } 2393 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); }
2388 2394
2389 2395
2390 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); } 2396 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); }
2391 2397
2392 2398
2393 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); } 2399 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); }
2394 2400
2395 2401
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 } 2571 }
2566 if (Type::IsInteger(*value)) { 2572 if (Type::IsInteger(*value)) {
2567 return Type::Range(value->Number(), value->Number(), zone()); 2573 return Type::Range(value->Number(), value->Number(), zone());
2568 } 2574 }
2569 return Type::Constant(value, zone()); 2575 return Type::Constant(value, zone());
2570 } 2576 }
2571 2577
2572 } // namespace compiler 2578 } // namespace compiler
2573 } // namespace internal 2579 } // namespace internal
2574 } // namespace v8 2580 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698