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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 } | 1527 } |
1528 | 1528 |
1529 | 1529 |
1530 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { | 1530 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { |
1531 switch (CallRuntimeParametersOf(node->op()).id()) { | 1531 switch (CallRuntimeParametersOf(node->op()).id()) { |
1532 case Runtime::kInlineIsSmi: | 1532 case Runtime::kInlineIsSmi: |
1533 case Runtime::kInlineIsArray: | 1533 case Runtime::kInlineIsArray: |
1534 case Runtime::kInlineIsDate: | 1534 case Runtime::kInlineIsDate: |
1535 case Runtime::kInlineIsTypedArray: | 1535 case Runtime::kInlineIsTypedArray: |
1536 case Runtime::kInlineIsMinusZero: | 1536 case Runtime::kInlineIsMinusZero: |
1537 case Runtime::kInlineIsFunction: | |
1538 case Runtime::kInlineIsRegExp: | 1537 case Runtime::kInlineIsRegExp: |
1539 case Runtime::kInlineIsJSReceiver: | 1538 case Runtime::kInlineIsJSReceiver: |
1540 return Type::Boolean(); | 1539 return Type::Boolean(); |
1541 case Runtime::kInlineDoubleLo: | 1540 case Runtime::kInlineDoubleLo: |
1542 case Runtime::kInlineDoubleHi: | 1541 case Runtime::kInlineDoubleHi: |
1543 return Type::Signed32(); | 1542 return Type::Signed32(); |
1544 case Runtime::kInlineConstructDouble: | 1543 case Runtime::kInlineConstructDouble: |
1545 case Runtime::kInlineMathFloor: | 1544 case Runtime::kInlineMathFloor: |
1546 case Runtime::kInlineMathSqrt: | 1545 case Runtime::kInlineMathSqrt: |
1547 case Runtime::kInlineMathAcos: | 1546 case Runtime::kInlineMathAcos: |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2390 } | 2389 } |
2391 if (Type::IsInteger(*value)) { | 2390 if (Type::IsInteger(*value)) { |
2392 return Type::Range(value->Number(), value->Number(), zone()); | 2391 return Type::Range(value->Number(), value->Number(), zone()); |
2393 } | 2392 } |
2394 return Type::Constant(value, zone()); | 2393 return Type::Constant(value, zone()); |
2395 } | 2394 } |
2396 | 2395 |
2397 } // namespace compiler | 2396 } // namespace compiler |
2398 } // namespace internal | 2397 } // namespace internal |
2399 } // namespace v8 | 2398 } // namespace v8 |
OLD | NEW |