| 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 return Type::OtherObject(); | 1210 return Type::OtherObject(); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 | 1213 |
| 1214 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { | 1214 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { |
| 1215 return Type::OtherObject(); | 1215 return Type::OtherObject(); |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 | 1218 |
| 1219 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { | 1219 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { |
| 1220 return Type::OtherObject(); | 1220 return Type::Function(); |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 | 1223 |
| 1224 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { | 1224 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { |
| 1225 return Type::OtherObject(); | 1225 return Type::OtherObject(); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 | 1228 |
| 1229 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) { | 1229 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) { |
| 1230 return Type::OtherObject(); | 1230 return Type::OtherObject(); |
| (...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2411 } | 2411 } |
| 2412 if (Type::IsInteger(*value)) { | 2412 if (Type::IsInteger(*value)) { |
| 2413 return Type::Range(value->Number(), value->Number(), zone()); | 2413 return Type::Range(value->Number(), value->Number(), zone()); |
| 2414 } | 2414 } |
| 2415 return Type::Constant(value, zone()); | 2415 return Type::Constant(value, zone()); |
| 2416 } | 2416 } |
| 2417 | 2417 |
| 2418 } // namespace compiler | 2418 } // namespace compiler |
| 2419 } // namespace internal | 2419 } // namespace internal |
| 2420 } // namespace v8 | 2420 } // namespace v8 |
| OLD | NEW |