| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/operation-typer.h" | 5 #include "src/compiler/operation-typer.h" |
| 6 | 6 |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/type-cache.h" |
| 8 #include "src/factory.h" | 9 #include "src/factory.h" |
| 9 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| 10 #include "src/type-cache.h" | |
| 11 #include "src/types.h" | 11 #include "src/types.h" |
| 12 | 12 |
| 13 #include "src/objects-inl.h" | 13 #include "src/objects-inl.h" |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 namespace compiler { | 17 namespace compiler { |
| 18 | 18 |
| 19 OperationTyper::OperationTyper(Isolate* isolate, Zone* zone) | 19 OperationTyper::OperationTyper(Isolate* isolate, Zone* zone) |
| 20 : zone_(zone), cache_(TypeCache::Get()) { | 20 : zone_(zone), cache_(TypeCache::Get()) { |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 return singleton_true(); | 959 return singleton_true(); |
| 960 } | 960 } |
| 961 | 961 |
| 962 Type* OperationTyper::TypeTypeGuard(const Operator* sigma_op, Type* input) { | 962 Type* OperationTyper::TypeTypeGuard(const Operator* sigma_op, Type* input) { |
| 963 return Type::Intersect(input, TypeGuardTypeOf(sigma_op), zone()); | 963 return Type::Intersect(input, TypeGuardTypeOf(sigma_op), zone()); |
| 964 } | 964 } |
| 965 | 965 |
| 966 } // namespace compiler | 966 } // namespace compiler |
| 967 } // namespace internal | 967 } // namespace internal |
| 968 } // namespace v8 | 968 } // namespace v8 |
| OLD | NEW |