| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 DECLARE_CASE(Loop) | 109 DECLARE_CASE(Loop) |
| 110 DECLARE_CASE(Branch) | 110 DECLARE_CASE(Branch) |
| 111 DECLARE_CASE(IfTrue) | 111 DECLARE_CASE(IfTrue) |
| 112 DECLARE_CASE(IfFalse) | 112 DECLARE_CASE(IfFalse) |
| 113 DECLARE_CASE(IfSuccess) | 113 DECLARE_CASE(IfSuccess) |
| 114 DECLARE_CASE(Switch) | 114 DECLARE_CASE(Switch) |
| 115 DECLARE_CASE(IfValue) | 115 DECLARE_CASE(IfValue) |
| 116 DECLARE_CASE(IfDefault) | 116 DECLARE_CASE(IfDefault) |
| 117 DECLARE_CASE(Merge) | 117 DECLARE_CASE(Merge) |
| 118 DECLARE_CASE(Deoptimize) | 118 DECLARE_CASE(Deoptimize) |
| 119 DECLARE_CASE(DeoptimizeIf) |
| 120 DECLARE_CASE(DeoptimizeUnless) |
| 119 DECLARE_CASE(Return) | 121 DECLARE_CASE(Return) |
| 120 DECLARE_CASE(TailCall) | 122 DECLARE_CASE(TailCall) |
| 121 DECLARE_CASE(Terminate) | 123 DECLARE_CASE(Terminate) |
| 122 DECLARE_CASE(OsrNormalEntry) | 124 DECLARE_CASE(OsrNormalEntry) |
| 123 DECLARE_CASE(OsrLoopEntry) | 125 DECLARE_CASE(OsrLoopEntry) |
| 124 DECLARE_CASE(Throw) | 126 DECLARE_CASE(Throw) |
| 125 DECLARE_CASE(End) | 127 DECLARE_CASE(End) |
| 126 #undef DECLARE_CASE | 128 #undef DECLARE_CASE |
| 127 break; | 129 break; |
| 128 } | 130 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 153 DECLARE_CASE(Loop) | 155 DECLARE_CASE(Loop) |
| 154 DECLARE_CASE(Branch) | 156 DECLARE_CASE(Branch) |
| 155 DECLARE_CASE(IfTrue) | 157 DECLARE_CASE(IfTrue) |
| 156 DECLARE_CASE(IfFalse) | 158 DECLARE_CASE(IfFalse) |
| 157 DECLARE_CASE(IfSuccess) | 159 DECLARE_CASE(IfSuccess) |
| 158 DECLARE_CASE(Switch) | 160 DECLARE_CASE(Switch) |
| 159 DECLARE_CASE(IfValue) | 161 DECLARE_CASE(IfValue) |
| 160 DECLARE_CASE(IfDefault) | 162 DECLARE_CASE(IfDefault) |
| 161 DECLARE_CASE(Merge) | 163 DECLARE_CASE(Merge) |
| 162 DECLARE_CASE(Deoptimize) | 164 DECLARE_CASE(Deoptimize) |
| 165 DECLARE_CASE(DeoptimizeIf) |
| 166 DECLARE_CASE(DeoptimizeUnless) |
| 163 DECLARE_CASE(Return) | 167 DECLARE_CASE(Return) |
| 164 DECLARE_CASE(TailCall) | 168 DECLARE_CASE(TailCall) |
| 165 DECLARE_CASE(Terminate) | 169 DECLARE_CASE(Terminate) |
| 166 DECLARE_CASE(OsrNormalEntry) | 170 DECLARE_CASE(OsrNormalEntry) |
| 167 DECLARE_CASE(OsrLoopEntry) | 171 DECLARE_CASE(OsrLoopEntry) |
| 168 DECLARE_CASE(Throw) | 172 DECLARE_CASE(Throw) |
| 169 DECLARE_CASE(End) | 173 DECLARE_CASE(End) |
| 170 #undef DECLARE_CASE | 174 #undef DECLARE_CASE |
| 171 break; | 175 break; |
| 172 } | 176 } |
| (...skipping 2270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2443 } | 2447 } |
| 2444 if (Type::IsInteger(*value)) { | 2448 if (Type::IsInteger(*value)) { |
| 2445 return Type::Range(value->Number(), value->Number(), zone()); | 2449 return Type::Range(value->Number(), value->Number(), zone()); |
| 2446 } | 2450 } |
| 2447 return Type::Constant(value, zone()); | 2451 return Type::Constant(value, zone()); |
| 2448 } | 2452 } |
| 2449 | 2453 |
| 2450 } // namespace compiler | 2454 } // namespace compiler |
| 2451 } // namespace internal | 2455 } // namespace internal |
| 2452 } // namespace v8 | 2456 } // namespace v8 |
| OLD | NEW |