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

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

Issue 1658123002: [intrinsics] Remove %_IsFunction inline intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/linkage.cc ('k') | src/crankshaft/hydrogen.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/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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 } 1527 }
1528 1528
1529 1529
1530 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { 1530 Type* Typer::Visitor::TypeJSCallRuntime(Node* node) {
1531 switch (CallRuntimeParametersOf(node->op()).id()) { 1531 switch (CallRuntimeParametersOf(node->op()).id()) {
1532 case Runtime::kInlineIsSmi: 1532 case Runtime::kInlineIsSmi:
1533 case Runtime::kInlineIsArray: 1533 case Runtime::kInlineIsArray:
1534 case Runtime::kInlineIsDate: 1534 case Runtime::kInlineIsDate:
1535 case Runtime::kInlineIsTypedArray: 1535 case Runtime::kInlineIsTypedArray:
1536 case Runtime::kInlineIsMinusZero: 1536 case Runtime::kInlineIsMinusZero:
1537 case Runtime::kInlineIsFunction:
1538 case Runtime::kInlineIsRegExp: 1537 case Runtime::kInlineIsRegExp:
1539 case Runtime::kInlineIsJSReceiver: 1538 case Runtime::kInlineIsJSReceiver:
1540 return Type::Boolean(); 1539 return Type::Boolean();
1541 case Runtime::kInlineDoubleLo: 1540 case Runtime::kInlineDoubleLo:
1542 case Runtime::kInlineDoubleHi: 1541 case Runtime::kInlineDoubleHi:
1543 return Type::Signed32(); 1542 return Type::Signed32();
1544 case Runtime::kInlineConstructDouble: 1543 case Runtime::kInlineConstructDouble:
1545 case Runtime::kInlineMathFloor: 1544 case Runtime::kInlineMathFloor:
1546 case Runtime::kInlineMathSqrt: 1545 case Runtime::kInlineMathSqrt:
1547 case Runtime::kInlineMathAcos: 1546 case Runtime::kInlineMathAcos:
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 } 2389 }
2391 if (Type::IsInteger(*value)) { 2390 if (Type::IsInteger(*value)) {
2392 return Type::Range(value->Number(), value->Number(), zone()); 2391 return Type::Range(value->Number(), value->Number(), zone());
2393 } 2392 }
2394 return Type::Constant(value, zone()); 2393 return Type::Constant(value, zone());
2395 } 2394 }
2396 2395
2397 } // namespace compiler 2396 } // namespace compiler
2398 } // namespace internal 2397 } // namespace internal
2399 } // namespace v8 2398 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698