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

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

Issue 1828253002: [builtins] Provide Math.floor as TurboFan builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Address feedback. Created 4 years, 8 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/js-intrinsic-lowering.cc ('k') | src/contexts.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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 return TypeUnaryOp(node, ObjectIsSmi); 1578 return TypeUnaryOp(node, ObjectIsSmi);
1579 case Runtime::kInlineIsArray: 1579 case Runtime::kInlineIsArray:
1580 case Runtime::kInlineIsDate: 1580 case Runtime::kInlineIsDate:
1581 case Runtime::kInlineIsTypedArray: 1581 case Runtime::kInlineIsTypedArray:
1582 case Runtime::kInlineIsRegExp: 1582 case Runtime::kInlineIsRegExp:
1583 return Type::Boolean(); 1583 return Type::Boolean();
1584 case Runtime::kInlineDoubleLo: 1584 case Runtime::kInlineDoubleLo:
1585 case Runtime::kInlineDoubleHi: 1585 case Runtime::kInlineDoubleHi:
1586 return Type::Signed32(); 1586 return Type::Signed32();
1587 case Runtime::kInlineConstructDouble: 1587 case Runtime::kInlineConstructDouble:
1588 case Runtime::kInlineMathFloor:
1589 case Runtime::kInlineMathAtan2: 1588 case Runtime::kInlineMathAtan2:
1590 return Type::Number(); 1589 return Type::Number();
1591 case Runtime::kInlineMathClz32: 1590 case Runtime::kInlineMathClz32:
1592 return Type::Range(0, 32, zone()); 1591 return Type::Range(0, 32, zone());
1593 case Runtime::kInlineCreateIterResultObject: 1592 case Runtime::kInlineCreateIterResultObject:
1594 case Runtime::kInlineRegExpConstructResult: 1593 case Runtime::kInlineRegExpConstructResult:
1595 return Type::OtherObject(); 1594 return Type::OtherObject();
1596 case Runtime::kInlineSubString: 1595 case Runtime::kInlineSubString:
1597 case Runtime::kInlineStringCharFromCode: 1596 case Runtime::kInlineStringCharFromCode:
1598 return Type::String(); 1597 return Type::String();
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 } 2467 }
2469 if (Type::IsInteger(*value)) { 2468 if (Type::IsInteger(*value)) {
2470 return Type::Range(value->Number(), value->Number(), zone()); 2469 return Type::Range(value->Number(), value->Number(), zone());
2471 } 2470 }
2472 return Type::Constant(value, zone()); 2471 return Type::Constant(value, zone());
2473 } 2472 }
2474 2473
2475 } // namespace compiler 2474 } // namespace compiler
2476 } // namespace internal 2475 } // namespace internal
2477 } // namespace v8 2476 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698