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 "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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 return Type::Any(); | 1312 return Type::Any(); |
1313 } | 1313 } |
1314 | 1314 |
1315 | 1315 |
1316 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { | 1316 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { |
1317 UNREACHABLE(); | 1317 UNREACHABLE(); |
1318 return nullptr; | 1318 return nullptr; |
1319 } | 1319 } |
1320 | 1320 |
1321 | 1321 |
1322 Type* Typer::Visitor::TypeJSLoadDynamicGlobal(Node* node) { | 1322 Type* Typer::Visitor::TypeJSLoadDynamic(Node* node) { return Type::Any(); } |
1323 return Type::Any(); | |
1324 } | |
1325 | |
1326 | |
1327 Type* Typer::Visitor::TypeJSLoadDynamicContext(Node* node) { | |
1328 return Type::Any(); | |
1329 } | |
1330 | 1323 |
1331 | 1324 |
1332 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) { | 1325 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) { |
1333 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node)); | 1326 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node)); |
1334 if (outer->Is(Type::None())) { | 1327 if (outer->Is(Type::None())) { |
1335 return Type::None(); | 1328 return Type::None(); |
1336 } else { | 1329 } else { |
1337 DCHECK(outer->Maybe(Type::Internal())); | 1330 DCHECK(outer->Maybe(Type::Internal())); |
1338 return Type::Context(outer, zone()); | 1331 return Type::Context(outer, zone()); |
1339 } | 1332 } |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2199 } | 2192 } |
2200 if (Type::IsInteger(*value)) { | 2193 if (Type::IsInteger(*value)) { |
2201 return Type::Range(value->Number(), value->Number(), zone()); | 2194 return Type::Range(value->Number(), value->Number(), zone()); |
2202 } | 2195 } |
2203 return Type::Constant(value, zone()); | 2196 return Type::Constant(value, zone()); |
2204 } | 2197 } |
2205 | 2198 |
2206 } // namespace compiler | 2199 } // namespace compiler |
2207 } // namespace internal | 2200 } // namespace internal |
2208 } // namespace v8 | 2201 } // namespace v8 |
OLD | NEW |