OLD | NEW |
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 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 } | 1674 } |
1675 | 1675 |
1676 Type* Typer::Visitor::StringFromCharCodeTyper(Type* type, Typer* t) { | 1676 Type* Typer::Visitor::StringFromCharCodeTyper(Type* type, Typer* t) { |
1677 return Type::String(); | 1677 return Type::String(); |
1678 } | 1678 } |
1679 | 1679 |
1680 Type* Typer::Visitor::StringFromCodePointTyper(Type* type, Typer* t) { | 1680 Type* Typer::Visitor::StringFromCodePointTyper(Type* type, Typer* t) { |
1681 return Type::String(); | 1681 return Type::String(); |
1682 } | 1682 } |
1683 | 1683 |
| 1684 Type* Typer::Visitor::TypeStringCharAt(Node* node) { return Type::String(); } |
| 1685 |
1684 Type* Typer::Visitor::TypeStringCharCodeAt(Node* node) { | 1686 Type* Typer::Visitor::TypeStringCharCodeAt(Node* node) { |
1685 return typer_->cache_.kUint16; | 1687 return typer_->cache_.kUint16; |
1686 } | 1688 } |
1687 | 1689 |
1688 Type* Typer::Visitor::TypeStringFromCharCode(Node* node) { | 1690 Type* Typer::Visitor::TypeStringFromCharCode(Node* node) { |
1689 return TypeUnaryOp(node, StringFromCharCodeTyper); | 1691 return TypeUnaryOp(node, StringFromCharCodeTyper); |
1690 } | 1692 } |
1691 | 1693 |
1692 Type* Typer::Visitor::TypeStringFromCodePoint(Node* node) { | 1694 Type* Typer::Visitor::TypeStringFromCodePoint(Node* node) { |
1693 return TypeUnaryOp(node, StringFromCodePointTyper); | 1695 return TypeUnaryOp(node, StringFromCodePointTyper); |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1857 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1856 if (Type::IsInteger(*value)) { | 1858 if (Type::IsInteger(*value)) { |
1857 return Type::Range(value->Number(), value->Number(), zone()); | 1859 return Type::Range(value->Number(), value->Number(), zone()); |
1858 } | 1860 } |
1859 return Type::NewConstant(value, zone()); | 1861 return Type::NewConstant(value, zone()); |
1860 } | 1862 } |
1861 | 1863 |
1862 } // namespace compiler | 1864 } // namespace compiler |
1863 } // namespace internal | 1865 } // namespace internal |
1864 } // namespace v8 | 1866 } // namespace v8 |
OLD | NEW |