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/base/flags.h" | 5 #include "src/base/flags.h" |
6 #include "src/bootstrapper.h" | 6 #include "src/bootstrapper.h" |
7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { | 1572 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { |
1573 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. | 1573 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. |
1574 } | 1574 } |
1575 | 1575 |
1576 | 1576 |
1577 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { | 1577 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { |
1578 switch (CallRuntimeParametersOf(node->op()).id()) { | 1578 switch (CallRuntimeParametersOf(node->op()).id()) { |
1579 case Runtime::kInlineIsSmi: | 1579 case Runtime::kInlineIsSmi: |
1580 case Runtime::kInlineIsNonNegativeSmi: | 1580 case Runtime::kInlineIsNonNegativeSmi: |
1581 case Runtime::kInlineIsArray: | 1581 case Runtime::kInlineIsArray: |
| 1582 case Runtime::kInlineIsMinusZero: |
1582 case Runtime::kInlineIsFunction: | 1583 case Runtime::kInlineIsFunction: |
1583 case Runtime::kInlineIsRegExp: | 1584 case Runtime::kInlineIsRegExp: |
1584 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1585 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1585 case Runtime::kInlineDoubleLo: | 1586 case Runtime::kInlineDoubleLo: |
1586 case Runtime::kInlineDoubleHi: | 1587 case Runtime::kInlineDoubleHi: |
1587 return Bounds(Type::None(zone()), Type::Signed32()); | 1588 return Bounds(Type::None(zone()), Type::Signed32()); |
1588 case Runtime::kInlineConstructDouble: | 1589 case Runtime::kInlineConstructDouble: |
1589 case Runtime::kInlineMathFloor: | 1590 case Runtime::kInlineMathFloor: |
1590 case Runtime::kInlineMathSqrt: | 1591 case Runtime::kInlineMathSqrt: |
1591 case Runtime::kInlineMathAcos: | 1592 case Runtime::kInlineMathAcos: |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2369 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2369 #undef TYPED_ARRAY_CASE | 2370 #undef TYPED_ARRAY_CASE |
2370 } | 2371 } |
2371 } | 2372 } |
2372 return Type::Constant(value, zone()); | 2373 return Type::Constant(value, zone()); |
2373 } | 2374 } |
2374 | 2375 |
2375 } // namespace compiler | 2376 } // namespace compiler |
2376 } // namespace internal | 2377 } // namespace internal |
2377 } // namespace v8 | 2378 } // namespace v8 |
OLD | NEW |