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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { | 1259 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { |
1260 UNREACHABLE(); | 1260 UNREACHABLE(); |
1261 return nullptr; | 1261 return nullptr; |
1262 } | 1262 } |
1263 | 1263 |
1264 | 1264 |
1265 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) { | 1265 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) { |
1266 return Type::OtherInternal(); | 1266 return Type::OtherInternal(); |
1267 } | 1267 } |
1268 | 1268 |
| 1269 Type* Typer::Visitor::TypeJSCreateEvalContext(Node* node) { |
| 1270 return Type::OtherInternal(); |
| 1271 } |
| 1272 |
1269 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) { | 1273 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) { |
1270 return Type::OtherInternal(); | 1274 return Type::OtherInternal(); |
1271 } | 1275 } |
1272 | 1276 |
1273 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { | 1277 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { |
1274 return Type::OtherInternal(); | 1278 return Type::OtherInternal(); |
1275 } | 1279 } |
1276 | 1280 |
1277 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { | 1281 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { |
1278 return Type::OtherInternal(); | 1282 return Type::OtherInternal(); |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1743 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1740 if (Type::IsInteger(*value)) { | 1744 if (Type::IsInteger(*value)) { |
1741 return Type::Range(value->Number(), value->Number(), zone()); | 1745 return Type::Range(value->Number(), value->Number(), zone()); |
1742 } | 1746 } |
1743 return Type::NewConstant(value, zone()); | 1747 return Type::NewConstant(value, zone()); |
1744 } | 1748 } |
1745 | 1749 |
1746 } // namespace compiler | 1750 } // namespace compiler |
1747 } // namespace internal | 1751 } // namespace internal |
1748 } // namespace v8 | 1752 } // namespace v8 |
OLD | NEW |