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

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

Issue 1486383003: [turbofan] Optimize %_IsJSReceiver based on input type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 1551
1552 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { 1552 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) {
1553 switch (CallRuntimeParametersOf(node->op()).id()) { 1553 switch (CallRuntimeParametersOf(node->op()).id()) {
1554 case Runtime::kInlineIsSmi: 1554 case Runtime::kInlineIsSmi:
1555 case Runtime::kInlineIsArray: 1555 case Runtime::kInlineIsArray:
1556 case Runtime::kInlineIsDate: 1556 case Runtime::kInlineIsDate:
1557 case Runtime::kInlineIsTypedArray: 1557 case Runtime::kInlineIsTypedArray:
1558 case Runtime::kInlineIsMinusZero: 1558 case Runtime::kInlineIsMinusZero:
1559 case Runtime::kInlineIsFunction: 1559 case Runtime::kInlineIsFunction:
1560 case Runtime::kInlineIsRegExp: 1560 case Runtime::kInlineIsRegExp:
1561 case Runtime::kInlineIsJSReceiver:
1561 return Type::Boolean(zone()); 1562 return Type::Boolean(zone());
1562 case Runtime::kInlineDoubleLo: 1563 case Runtime::kInlineDoubleLo:
1563 case Runtime::kInlineDoubleHi: 1564 case Runtime::kInlineDoubleHi:
1564 return Type::Signed32(); 1565 return Type::Signed32();
1565 case Runtime::kInlineConstructDouble: 1566 case Runtime::kInlineConstructDouble:
1566 case Runtime::kInlineDateField: 1567 case Runtime::kInlineDateField:
1567 case Runtime::kInlineMathFloor: 1568 case Runtime::kInlineMathFloor:
1568 case Runtime::kInlineMathSqrt: 1569 case Runtime::kInlineMathSqrt:
1569 case Runtime::kInlineMathAcos: 1570 case Runtime::kInlineMathAcos:
1570 case Runtime::kInlineMathAsin: 1571 case Runtime::kInlineMathAsin:
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 } 2418 }
2418 if (Type::IsInteger(*value)) { 2419 if (Type::IsInteger(*value)) {
2419 return Type::Range(value->Number(), value->Number(), zone()); 2420 return Type::Range(value->Number(), value->Number(), zone());
2420 } 2421 }
2421 return Type::Constant(value, zone()); 2422 return Type::Constant(value, zone());
2422 } 2423 }
2423 2424
2424 } // namespace compiler 2425 } // namespace compiler
2425 } // namespace internal 2426 } // namespace internal
2426 } // namespace v8 2427 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698