| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { | 1304 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { |
| 1305 return WrapContextTypeForInput(node); | 1305 return WrapContextTypeForInput(node); |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 | 1308 |
| 1309 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { | 1309 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { |
| 1310 return WrapContextTypeForInput(node); | 1310 return WrapContextTypeForInput(node); |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 | 1313 |
| 1314 Type* Typer::Visitor::TypeJSCreateModuleContext(Node* node) { | |
| 1315 // TODO(rossberg): this is probably incorrect | |
| 1316 return WrapContextTypeForInput(node); | |
| 1317 } | |
| 1318 | |
| 1319 | |
| 1320 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { | 1314 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { |
| 1321 return WrapContextTypeForInput(node); | 1315 return WrapContextTypeForInput(node); |
| 1322 } | 1316 } |
| 1323 | 1317 |
| 1324 | 1318 |
| 1325 // JS other operators. | 1319 // JS other operators. |
| 1326 | 1320 |
| 1327 | 1321 |
| 1328 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) { | 1322 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) { |
| 1329 return Type::Receiver(); | 1323 return Type::Receiver(); |
| (...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2588 } | 2582 } |
| 2589 if (Type::IsInteger(*value)) { | 2583 if (Type::IsInteger(*value)) { |
| 2590 return Type::Range(value->Number(), value->Number(), zone()); | 2584 return Type::Range(value->Number(), value->Number(), zone()); |
| 2591 } | 2585 } |
| 2592 return Type::Constant(value, zone()); | 2586 return Type::Constant(value, zone()); |
| 2593 } | 2587 } |
| 2594 | 2588 |
| 2595 } // namespace compiler | 2589 } // namespace compiler |
| 2596 } // namespace internal | 2590 } // namespace internal |
| 2597 } // namespace v8 | 2591 } // namespace v8 |
| OLD | NEW |