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

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

Issue 1579613002: [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: As per offline discussion, remove the weird test, which does not add a lot of value. Created 4 years, 11 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/arm/lithium-arm.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 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 case Runtime::kInlineIsTypedArray: 1556 case Runtime::kInlineIsTypedArray:
1557 case Runtime::kInlineIsMinusZero: 1557 case Runtime::kInlineIsMinusZero:
1558 case Runtime::kInlineIsFunction: 1558 case Runtime::kInlineIsFunction:
1559 case Runtime::kInlineIsRegExp: 1559 case Runtime::kInlineIsRegExp:
1560 case Runtime::kInlineIsJSReceiver: 1560 case Runtime::kInlineIsJSReceiver:
1561 return Type::Boolean(zone()); 1561 return Type::Boolean(zone());
1562 case Runtime::kInlineDoubleLo: 1562 case Runtime::kInlineDoubleLo:
1563 case Runtime::kInlineDoubleHi: 1563 case Runtime::kInlineDoubleHi:
1564 return Type::Signed32(); 1564 return Type::Signed32();
1565 case Runtime::kInlineConstructDouble: 1565 case Runtime::kInlineConstructDouble:
1566 case Runtime::kInlineDateField:
1567 case Runtime::kInlineMathFloor: 1566 case Runtime::kInlineMathFloor:
1568 case Runtime::kInlineMathSqrt: 1567 case Runtime::kInlineMathSqrt:
1569 case Runtime::kInlineMathAcos: 1568 case Runtime::kInlineMathAcos:
1570 case Runtime::kInlineMathAsin: 1569 case Runtime::kInlineMathAsin:
1571 case Runtime::kInlineMathAtan: 1570 case Runtime::kInlineMathAtan:
1572 case Runtime::kInlineMathAtan2: 1571 case Runtime::kInlineMathAtan2:
1573 return Type::Number(); 1572 return Type::Number();
1574 case Runtime::kInlineMathClz32: 1573 case Runtime::kInlineMathClz32:
1575 return Type::Range(0, 32, zone()); 1574 return Type::Range(0, 32, zone());
1576 case Runtime::kInlineCreateIterResultObject: 1575 case Runtime::kInlineCreateIterResultObject:
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 } 2431 }
2433 if (Type::IsInteger(*value)) { 2432 if (Type::IsInteger(*value)) {
2434 return Type::Range(value->Number(), value->Number(), zone()); 2433 return Type::Range(value->Number(), value->Number(), zone());
2435 } 2434 }
2436 return Type::Constant(value, zone()); 2435 return Type::Constant(value, zone());
2437 } 2436 }
2438 2437
2439 } // namespace compiler 2438 } // namespace compiler
2440 } // namespace internal 2439 } // namespace internal
2441 } // namespace v8 2440 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/crankshaft/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698