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 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 | 1248 |
1249 Type* Typer::Visitor::JSInstanceOfTyper(Type* lhs, Type* rhs, Typer* t) { | 1249 Type* Typer::Visitor::JSInstanceOfTyper(Type* lhs, Type* rhs, Typer* t) { |
1250 return Type::Boolean(); | 1250 return Type::Boolean(); |
1251 } | 1251 } |
1252 | 1252 |
1253 Type* Typer::Visitor::JSOrdinaryHasInstanceTyper(Type* lhs, Type* rhs, | 1253 Type* Typer::Visitor::JSOrdinaryHasInstanceTyper(Type* lhs, Type* rhs, |
1254 Typer* t) { | 1254 Typer* t) { |
1255 return Type::Boolean(); | 1255 return Type::Boolean(); |
1256 } | 1256 } |
1257 | 1257 |
| 1258 Type* Typer::Visitor::TypeJSGetSuperConstructor(Node* node) { |
| 1259 return Type::Receiver(); |
| 1260 } |
| 1261 |
1258 // JS context operators. | 1262 // JS context operators. |
1259 | 1263 |
1260 | 1264 |
1261 Type* Typer::Visitor::TypeJSLoadContext(Node* node) { | 1265 Type* Typer::Visitor::TypeJSLoadContext(Node* node) { |
1262 ContextAccess const& access = ContextAccessOf(node->op()); | 1266 ContextAccess const& access = ContextAccessOf(node->op()); |
1263 switch (access.index()) { | 1267 switch (access.index()) { |
1264 case Context::PREVIOUS_INDEX: | 1268 case Context::PREVIOUS_INDEX: |
1265 case Context::NATIVE_CONTEXT_INDEX: | 1269 case Context::NATIVE_CONTEXT_INDEX: |
1266 return Type::OtherInternal(); | 1270 return Type::OtherInternal(); |
1267 case Context::CLOSURE_INDEX: | 1271 case Context::CLOSURE_INDEX: |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1839 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1836 if (Type::IsInteger(*value)) { | 1840 if (Type::IsInteger(*value)) { |
1837 return Type::Range(value->Number(), value->Number(), zone()); | 1841 return Type::Range(value->Number(), value->Number(), zone()); |
1838 } | 1842 } |
1839 return Type::NewConstant(value, zone()); | 1843 return Type::NewConstant(value, zone()); |
1840 } | 1844 } |
1841 | 1845 |
1842 } // namespace compiler | 1846 } // namespace compiler |
1843 } // namespace internal | 1847 } // namespace internal |
1844 } // namespace v8 | 1848 } // namespace v8 |
OLD | NEW |