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

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

Issue 2050813003: [turbofan] Introduce CheckIf node (deopt without explicit frame state). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename Created 4 years, 6 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/simplified-operator.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 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 } 1938 }
1939 1939
1940 Type* Typer::Visitor::TypeCheckedTaggedToInt32(Node* node) { 1940 Type* Typer::Visitor::TypeCheckedTaggedToInt32(Node* node) {
1941 return Type::Signed32(); 1941 return Type::Signed32();
1942 } 1942 }
1943 1943
1944 Type* Typer::Visitor::TypeCheckedTaggedToFloat64(Node* node) { 1944 Type* Typer::Visitor::TypeCheckedTaggedToFloat64(Node* node) {
1945 return Type::Number(); 1945 return Type::Number();
1946 } 1946 }
1947 1947
1948 Type* Typer::Visitor::TypeCheckIf(Node* node) {
1949 UNREACHABLE();
1950 return nullptr;
1951 }
1952
1948 Type* Typer::Visitor::TypeTruncateTaggedToWord32(Node* node) { 1953 Type* Typer::Visitor::TypeTruncateTaggedToWord32(Node* node) {
1949 Type* arg = Operand(node, 0); 1954 Type* arg = Operand(node, 0);
1950 // TODO(jarin): DCHECK(arg->Is(Type::NumberOrUndefined())); 1955 // TODO(jarin): DCHECK(arg->Is(Type::NumberOrUndefined()));
1951 // Several mjsunit and cctest tests fail this check. For instance, 1956 // Several mjsunit and cctest tests fail this check. For instance,
1952 // mjsunit/compiler/regress-607493 fails with Any/Any in simplified-lowering 1957 // mjsunit/compiler/regress-607493 fails with Any/Any in simplified-lowering
1953 // (after propagation). 1958 // (after propagation).
1954 return ChangeRepresentation(arg, Type::UntaggedIntegral32(), zone()); 1959 return ChangeRepresentation(arg, Type::UntaggedIntegral32(), zone());
1955 } 1960 }
1956 1961
1957 Type* Typer::Visitor::TypeAllocate(Node* node) { return Type::TaggedPointer(); } 1962 Type* Typer::Visitor::TypeAllocate(Node* node) { return Type::TaggedPointer(); }
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 } 2651 }
2647 if (Type::IsInteger(*value)) { 2652 if (Type::IsInteger(*value)) {
2648 return Type::Range(value->Number(), value->Number(), zone()); 2653 return Type::Range(value->Number(), value->Number(), zone());
2649 } 2654 }
2650 return Type::Constant(value, zone()); 2655 return Type::Constant(value, zone());
2651 } 2656 }
2652 2657
2653 } // namespace compiler 2658 } // namespace compiler
2654 } // namespace internal 2659 } // namespace internal
2655 } // namespace v8 2660 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698