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

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

Issue 2950773002: [turbofan] Introduce new JSCallWithArrayLike operator. (Closed)
Patch Set: Created 3 years, 6 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
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/compiler/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 Type* Typer::Visitor::TypeJSCallForwardVarargs(Node* node) { 1603 Type* Typer::Visitor::TypeJSCallForwardVarargs(Node* node) {
1604 return TypeUnaryOp(node, JSCallTyper); 1604 return TypeUnaryOp(node, JSCallTyper);
1605 } 1605 }
1606 1606
1607 Type* Typer::Visitor::TypeJSCall(Node* node) { 1607 Type* Typer::Visitor::TypeJSCall(Node* node) {
1608 // TODO(bmeurer): We could infer better types if we wouldn't ignore the 1608 // TODO(bmeurer): We could infer better types if we wouldn't ignore the
1609 // argument types for the JSCallTyper above. 1609 // argument types for the JSCallTyper above.
1610 return TypeUnaryOp(node, JSCallTyper); 1610 return TypeUnaryOp(node, JSCallTyper);
1611 } 1611 }
1612 1612
1613 Type* Typer::Visitor::TypeJSCallWithArrayLike(Node* node) {
1614 return TypeUnaryOp(node, JSCallTyper);
1615 }
1616
1613 Type* Typer::Visitor::TypeJSCallWithSpread(Node* node) { 1617 Type* Typer::Visitor::TypeJSCallWithSpread(Node* node) {
1614 return TypeUnaryOp(node, JSCallTyper); 1618 return TypeUnaryOp(node, JSCallTyper);
1615 } 1619 }
1616 1620
1617 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { 1621 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) {
1618 switch (CallRuntimeParametersOf(node->op()).id()) { 1622 switch (CallRuntimeParametersOf(node->op()).id()) {
1619 case Runtime::kInlineIsJSReceiver: 1623 case Runtime::kInlineIsJSReceiver:
1620 return TypeUnaryOp(node, ObjectIsReceiver); 1624 return TypeUnaryOp(node, ObjectIsReceiver);
1621 case Runtime::kInlineIsSmi: 1625 case Runtime::kInlineIsSmi:
1622 return TypeUnaryOp(node, ObjectIsSmi); 1626 return TypeUnaryOp(node, ObjectIsSmi);
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 2014 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
2011 if (Type::IsInteger(*value)) { 2015 if (Type::IsInteger(*value)) {
2012 return Type::Range(value->Number(), value->Number(), zone()); 2016 return Type::Range(value->Number(), value->Number(), zone());
2013 } 2017 }
2014 return Type::NewConstant(value, zone()); 2018 return Type::NewConstant(value, zone());
2015 } 2019 }
2016 2020
2017 } // namespace compiler 2021 } // namespace compiler
2018 } // namespace internal 2022 } // namespace internal
2019 } // namespace v8 2023 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698