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

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

Issue 1574223002: Revert of [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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:
1566 case Runtime::kInlineMathFloor: 1567 case Runtime::kInlineMathFloor:
1567 case Runtime::kInlineMathSqrt: 1568 case Runtime::kInlineMathSqrt:
1568 case Runtime::kInlineMathAcos: 1569 case Runtime::kInlineMathAcos:
1569 case Runtime::kInlineMathAsin: 1570 case Runtime::kInlineMathAsin:
1570 case Runtime::kInlineMathAtan: 1571 case Runtime::kInlineMathAtan:
1571 case Runtime::kInlineMathAtan2: 1572 case Runtime::kInlineMathAtan2:
1572 return Type::Number(); 1573 return Type::Number();
1573 case Runtime::kInlineMathClz32: 1574 case Runtime::kInlineMathClz32:
1574 return Type::Range(0, 32, zone()); 1575 return Type::Range(0, 32, zone());
1575 case Runtime::kInlineCreateIterResultObject: 1576 case Runtime::kInlineCreateIterResultObject:
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 } 2432 }
2432 if (Type::IsInteger(*value)) { 2433 if (Type::IsInteger(*value)) {
2433 return Type::Range(value->Number(), value->Number(), zone()); 2434 return Type::Range(value->Number(), value->Number(), zone());
2434 } 2435 }
2435 return Type::Constant(value, zone()); 2436 return Type::Constant(value, zone());
2436 } 2437 }
2437 2438
2438 } // namespace compiler 2439 } // namespace compiler
2439 } // namespace internal 2440 } // namespace internal
2440 } // namespace v8 2441 } // 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