| 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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 case kMathFround: | 1314 case kMathFround: |
| 1315 case kMathLog: | 1315 case kMathLog: |
| 1316 case kMathLog1p: | 1316 case kMathLog1p: |
| 1317 case kMathLog10: | 1317 case kMathLog10: |
| 1318 case kMathLog2: | 1318 case kMathLog2: |
| 1319 case kMathSin: | 1319 case kMathSin: |
| 1320 case kMathSqrt: | 1320 case kMathSqrt: |
| 1321 case kMathTan: | 1321 case kMathTan: |
| 1322 return Type::Number(); | 1322 return Type::Number(); |
| 1323 case kMathSign: | 1323 case kMathSign: |
| 1324 return t->cache_.kMinusOneToOne; | 1324 return t->cache_.kMinusOneToOneOrMinusZeroOrNaN; |
| 1325 // Binary math functions. | 1325 // Binary math functions. |
| 1326 case kMathAtan2: | 1326 case kMathAtan2: |
| 1327 case kMathPow: | 1327 case kMathPow: |
| 1328 case kMathMax: | 1328 case kMathMax: |
| 1329 case kMathMin: | 1329 case kMathMin: |
| 1330 return Type::Number(); | 1330 return Type::Number(); |
| 1331 case kMathImul: | 1331 case kMathImul: |
| 1332 return Type::Signed32(); | 1332 return Type::Signed32(); |
| 1333 case kMathClz32: | 1333 case kMathClz32: |
| 1334 return t->cache_.kZeroToThirtyTwo; | 1334 return t->cache_.kZeroToThirtyTwo; |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 } | 2345 } |
| 2346 if (Type::IsInteger(*value)) { | 2346 if (Type::IsInteger(*value)) { |
| 2347 return Type::Range(value->Number(), value->Number(), zone()); | 2347 return Type::Range(value->Number(), value->Number(), zone()); |
| 2348 } | 2348 } |
| 2349 return Type::Constant(value, zone()); | 2349 return Type::Constant(value, zone()); |
| 2350 } | 2350 } |
| 2351 | 2351 |
| 2352 } // namespace compiler | 2352 } // namespace compiler |
| 2353 } // namespace internal | 2353 } // namespace internal |
| 2354 } // namespace v8 | 2354 } // namespace v8 |
| OLD | NEW |