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

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

Issue 1516753006: [turbofan] Some more cleanup on the intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 case Runtime::kInlineDateField: 1556 case Runtime::kInlineDateField:
1557 case Runtime::kInlineMathFloor: 1557 case Runtime::kInlineMathFloor:
1558 case Runtime::kInlineMathSqrt: 1558 case Runtime::kInlineMathSqrt:
1559 case Runtime::kInlineMathAcos: 1559 case Runtime::kInlineMathAcos:
1560 case Runtime::kInlineMathAsin: 1560 case Runtime::kInlineMathAsin:
1561 case Runtime::kInlineMathAtan: 1561 case Runtime::kInlineMathAtan:
1562 case Runtime::kInlineMathAtan2: 1562 case Runtime::kInlineMathAtan2:
1563 return Type::Number(); 1563 return Type::Number();
1564 case Runtime::kInlineMathClz32: 1564 case Runtime::kInlineMathClz32:
1565 return Type::Range(0, 32, zone()); 1565 return Type::Range(0, 32, zone());
1566 case Runtime::kInlineStringGetLength: 1566 case Runtime::kInlineRegExpConstructResult:
1567 return Type::Range(0, String::kMaxLength, zone()); 1567 return Type::OtherObject();
1568 case Runtime::kInlineSubString:
1569 return Type::String();
1568 case Runtime::kInlineToInteger: 1570 case Runtime::kInlineToInteger:
1569 return TypeUnaryOp(node, ToInteger); 1571 return TypeUnaryOp(node, ToInteger);
1570 case Runtime::kInlineToLength: 1572 case Runtime::kInlineToLength:
1571 return TypeUnaryOp(node, ToLength); 1573 return TypeUnaryOp(node, ToLength);
1572 case Runtime::kInlineToName: 1574 case Runtime::kInlineToName:
1573 return TypeUnaryOp(node, ToName); 1575 return TypeUnaryOp(node, ToName);
1574 case Runtime::kInlineToNumber: 1576 case Runtime::kInlineToNumber:
1575 return TypeUnaryOp(node, ToNumber); 1577 return TypeUnaryOp(node, ToNumber);
1576 case Runtime::kInlineToObject: 1578 case Runtime::kInlineToObject:
1577 return TypeUnaryOp(node, ToObject); 1579 return TypeUnaryOp(node, ToObject);
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 } 2409 }
2408 if (Type::IsInteger(*value)) { 2410 if (Type::IsInteger(*value)) {
2409 return Type::Range(value->Number(), value->Number(), zone()); 2411 return Type::Range(value->Number(), value->Number(), zone());
2410 } 2412 }
2411 return Type::Constant(value, zone()); 2413 return Type::Constant(value, zone());
2412 } 2414 }
2413 2415
2414 } // namespace compiler 2416 } // namespace compiler
2415 } // namespace internal 2417 } // namespace internal
2416 } // namespace v8 2418 } // 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