Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: src/compiler/typer.cc

Issue 872363002: [turbofan] Add new JSIntrinsicsLowering reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698