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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { | 1569 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { |
1570 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. | 1570 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. |
1571 } | 1571 } |
1572 | 1572 |
1573 | 1573 |
1574 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { | 1574 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { |
1575 switch (CallRuntimeParametersOf(node->op()).id()) { | 1575 switch (CallRuntimeParametersOf(node->op()).id()) { |
1576 case Runtime::kInlineIsSmi: | 1576 case Runtime::kInlineIsSmi: |
1577 case Runtime::kInlineIsNonNegativeSmi: | 1577 case Runtime::kInlineIsNonNegativeSmi: |
1578 case Runtime::kInlineIsArray: | 1578 case Runtime::kInlineIsArray: |
| 1579 case Runtime::kInlineIsMinusZero: |
1579 case Runtime::kInlineIsFunction: | 1580 case Runtime::kInlineIsFunction: |
1580 case Runtime::kInlineIsRegExp: | 1581 case Runtime::kInlineIsRegExp: |
1581 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1582 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1582 case Runtime::kInlineDoubleLo: | 1583 case Runtime::kInlineDoubleLo: |
1583 case Runtime::kInlineDoubleHi: | 1584 case Runtime::kInlineDoubleHi: |
1584 return Bounds(Type::None(zone()), Type::Signed32()); | 1585 return Bounds(Type::None(zone()), Type::Signed32()); |
1585 case Runtime::kInlineConstructDouble: | 1586 case Runtime::kInlineConstructDouble: |
1586 case Runtime::kInlineMathFloor: | 1587 case Runtime::kInlineMathFloor: |
1587 case Runtime::kInlineMathSqrt: | 1588 case Runtime::kInlineMathSqrt: |
1588 case Runtime::kInlineMathAcos: | 1589 case Runtime::kInlineMathAcos: |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2366 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2366 #undef TYPED_ARRAY_CASE | 2367 #undef TYPED_ARRAY_CASE |
2367 } | 2368 } |
2368 } | 2369 } |
2369 return Type::Constant(value, zone()); | 2370 return Type::Constant(value, zone()); |
2370 } | 2371 } |
2371 | 2372 |
2372 } // namespace compiler | 2373 } // namespace compiler |
2373 } // namespace internal | 2374 } // namespace internal |
2374 } // namespace v8 | 2375 } // namespace v8 |
OLD | NEW |