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

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

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Created 4 years, 2 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 <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 Type* type = Operand(node, 0); 1605 Type* type = Operand(node, 0);
1606 return type; 1606 return type;
1607 } 1607 }
1608 1608
1609 Type* Typer::Visitor::TypeCheckTaggedHole(Node* node) { 1609 Type* Typer::Visitor::TypeCheckTaggedHole(Node* node) {
1610 Type* type = Operand(node, 0); 1610 Type* type = Operand(node, 0);
1611 type = Type::Intersect(type, Type::NonInternal(), zone()); 1611 type = Type::Intersect(type, Type::NonInternal(), zone());
1612 return type; 1612 return type;
1613 } 1613 }
1614 1614
1615 Type* Typer::Visitor::TypeCheckHasInPrototypeChain(Node* node) {
1616 return Type::Boolean();
1617 }
1618
1619 Type* Typer::Visitor::TypeConvertTaggedHoleToUndefined(Node* node) { 1615 Type* Typer::Visitor::TypeConvertTaggedHoleToUndefined(Node* node) {
1620 Type* type = Operand(node, 0); 1616 Type* type = Operand(node, 0);
1621 if (type->Maybe(Type::Hole())) { 1617 if (type->Maybe(Type::Hole())) {
1622 // Turn "the hole" into undefined. 1618 // Turn "the hole" into undefined.
1623 type = Type::Intersect(type, Type::NonInternal(), zone()); 1619 type = Type::Intersect(type, Type::NonInternal(), zone());
1624 type = Type::Union(type, Type::Undefined(), zone()); 1620 type = Type::Union(type, Type::Undefined(), zone());
1625 } 1621 }
1626 return type; 1622 return type;
1627 } 1623 }
1628 1624
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1716 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1721 if (Type::IsInteger(*value)) { 1717 if (Type::IsInteger(*value)) {
1722 return Type::Range(value->Number(), value->Number(), zone()); 1718 return Type::Range(value->Number(), value->Number(), zone());
1723 } 1719 }
1724 return Type::Constant(value, zone()); 1720 return Type::Constant(value, zone());
1725 } 1721 }
1726 1722
1727 } // namespace compiler 1723 } // namespace compiler
1728 } // namespace internal 1724 } // namespace internal
1729 } // namespace v8 1725 } // 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