| 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/bootstrapper.h" | 5 #include "src/bootstrapper.h" | 
| 6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.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-inl.h" | 10 #include "src/compiler/node-properties-inl.h" | 
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1435   return fun->IsFunction() ? fun->AsFunction()->Result() : Type::Any(); | 1435   return fun->IsFunction() ? fun->AsFunction()->Result() : Type::Any(); | 
| 1436 } | 1436 } | 
| 1437 | 1437 | 
| 1438 | 1438 | 
| 1439 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { | 1439 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { | 
| 1440   return TypeUnaryOp(node, JSCallFunctionTyper);  // We ignore argument types. | 1440   return TypeUnaryOp(node, JSCallFunctionTyper);  // We ignore argument types. | 
| 1441 } | 1441 } | 
| 1442 | 1442 | 
| 1443 | 1443 | 
| 1444 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { | 1444 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { | 
|  | 1445   switch (CallRuntimeParametersOf(node->op()).id()) { | 
|  | 1446     case Runtime::kInlineIsSmi: | 
|  | 1447     case Runtime::kInlineIsNonNegativeSmi: | 
|  | 1448     case Runtime::kInlineIsArray: | 
|  | 1449     case Runtime::kInlineIsFunction: | 
|  | 1450     case Runtime::kInlineIsRegExp: | 
|  | 1451       return Bounds(Type::None(zone()), Type::Boolean(zone())); | 
|  | 1452     default: | 
|  | 1453       break; | 
|  | 1454   } | 
| 1445   return Bounds::Unbounded(zone()); | 1455   return Bounds::Unbounded(zone()); | 
| 1446 } | 1456 } | 
| 1447 | 1457 | 
| 1448 | 1458 | 
| 1449 Bounds Typer::Visitor::TypeJSDebugger(Node* node) { | 1459 Bounds Typer::Visitor::TypeJSDebugger(Node* node) { | 
| 1450   return Bounds::Unbounded(zone()); | 1460   return Bounds::Unbounded(zone()); | 
| 1451 } | 1461 } | 
| 1452 | 1462 | 
| 1453 | 1463 | 
| 1454 // Simplified operators. | 1464 // Simplified operators. | 
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2117       TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2127       TYPED_ARRAYS(TYPED_ARRAY_CASE) | 
| 2118 #undef TYPED_ARRAY_CASE | 2128 #undef TYPED_ARRAY_CASE | 
| 2119     } | 2129     } | 
| 2120   } | 2130   } | 
| 2121   return Type::Constant(value, zone()); | 2131   return Type::Constant(value, zone()); | 
| 2122 } | 2132 } | 
| 2123 | 2133 | 
| 2124 }  // namespace compiler | 2134 }  // namespace compiler | 
| 2125 }  // namespace internal | 2135 }  // namespace internal | 
| 2126 }  // namespace v8 | 2136 }  // namespace v8 | 
| OLD | NEW | 
|---|