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

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

Issue 1208003002: [turbofan] Properly type %_IsDate intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { 1528 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) {
1529 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. 1529 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types.
1530 } 1530 }
1531 1531
1532 1532
1533 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { 1533 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) {
1534 switch (CallRuntimeParametersOf(node->op()).id()) { 1534 switch (CallRuntimeParametersOf(node->op()).id()) {
1535 case Runtime::kInlineIsSmi: 1535 case Runtime::kInlineIsSmi:
1536 case Runtime::kInlineIsNonNegativeSmi: 1536 case Runtime::kInlineIsNonNegativeSmi:
1537 case Runtime::kInlineIsArray: 1537 case Runtime::kInlineIsArray:
1538 case Runtime::kInlineIsDate:
1538 case Runtime::kInlineIsTypedArray: 1539 case Runtime::kInlineIsTypedArray:
1539 case Runtime::kInlineIsMinusZero: 1540 case Runtime::kInlineIsMinusZero:
1540 case Runtime::kInlineIsFunction: 1541 case Runtime::kInlineIsFunction:
1541 case Runtime::kInlineIsRegExp: 1542 case Runtime::kInlineIsRegExp:
1542 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1543 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1543 case Runtime::kInlineDoubleLo: 1544 case Runtime::kInlineDoubleLo:
1544 case Runtime::kInlineDoubleHi: 1545 case Runtime::kInlineDoubleHi:
1545 return Bounds(Type::None(zone()), Type::Signed32()); 1546 return Bounds(Type::None(zone()), Type::Signed32());
1546 case Runtime::kInlineConstructDouble: 1547 case Runtime::kInlineConstructDouble:
1547 case Runtime::kInlineDateField: 1548 case Runtime::kInlineDateField:
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2371 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2371 #undef TYPED_ARRAY_CASE 2372 #undef TYPED_ARRAY_CASE
2372 } 2373 }
2373 } 2374 }
2374 return Type::Constant(value, zone()); 2375 return Type::Constant(value, zone());
2375 } 2376 }
2376 2377
2377 } // namespace compiler 2378 } // namespace compiler
2378 } // namespace internal 2379 } // namespace internal
2379 } // namespace v8 2380 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698