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

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

Issue 1905813003: [turbofan] Introduce dedicated BitcastWordToTagged machine operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Small fix. Created 4 years, 8 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 "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 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 Type* Typer::Visitor::TypeUint64LessThan(Node* node) { return Type::Boolean(); } 2210 Type* Typer::Visitor::TypeUint64LessThan(Node* node) { return Type::Boolean(); }
2211 2211
2212 2212
2213 Type* Typer::Visitor::TypeUint64LessThanOrEqual(Node* node) { 2213 Type* Typer::Visitor::TypeUint64LessThanOrEqual(Node* node) {
2214 return Type::Boolean(); 2214 return Type::Boolean();
2215 } 2215 }
2216 2216
2217 2217
2218 Type* Typer::Visitor::TypeUint64Mod(Node* node) { return Type::Internal(); } 2218 Type* Typer::Visitor::TypeUint64Mod(Node* node) { return Type::Internal(); }
2219 2219
2220 Type* Typer::Visitor::TypeBitcastWordToTagged(Node* node) {
2221 return Type::TaggedPointer();
2222 }
2220 2223
2221 Type* Typer::Visitor::TypeChangeFloat32ToFloat64(Node* node) { 2224 Type* Typer::Visitor::TypeChangeFloat32ToFloat64(Node* node) {
2222 return Type::Intersect(Type::Number(), Type::UntaggedFloat64(), zone()); 2225 return Type::Intersect(Type::Number(), Type::UntaggedFloat64(), zone());
2223 } 2226 }
2224 2227
2225 2228
2226 Type* Typer::Visitor::TypeChangeFloat64ToInt32(Node* node) { 2229 Type* Typer::Visitor::TypeChangeFloat64ToInt32(Node* node) {
2227 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); 2230 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone());
2228 } 2231 }
2229 2232
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 } 2563 }
2561 if (Type::IsInteger(*value)) { 2564 if (Type::IsInteger(*value)) {
2562 return Type::Range(value->Number(), value->Number(), zone()); 2565 return Type::Range(value->Number(), value->Number(), zone());
2563 } 2566 }
2564 return Type::Constant(value, zone()); 2567 return Type::Constant(value, zone());
2565 } 2568 }
2566 2569
2567 } // namespace compiler 2570 } // namespace compiler
2568 } // namespace internal 2571 } // namespace internal
2569 } // namespace v8 2572 } // 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