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

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

Issue 2137203002: [intrinsics] Remove obsolete intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really nuke TO_NAME. Created 4 years, 5 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/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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 case Runtime::kInlineCreateIterResultObject: 1474 case Runtime::kInlineCreateIterResultObject:
1475 case Runtime::kInlineRegExpConstructResult: 1475 case Runtime::kInlineRegExpConstructResult:
1476 return Type::OtherObject(); 1476 return Type::OtherObject();
1477 case Runtime::kInlineSubString: 1477 case Runtime::kInlineSubString:
1478 case Runtime::kInlineStringCharFromCode: 1478 case Runtime::kInlineStringCharFromCode:
1479 return Type::String(); 1479 return Type::String();
1480 case Runtime::kInlineToInteger: 1480 case Runtime::kInlineToInteger:
1481 return TypeUnaryOp(node, ToInteger); 1481 return TypeUnaryOp(node, ToInteger);
1482 case Runtime::kInlineToLength: 1482 case Runtime::kInlineToLength:
1483 return TypeUnaryOp(node, ToLength); 1483 return TypeUnaryOp(node, ToLength);
1484 case Runtime::kInlineToName:
1485 return TypeUnaryOp(node, ToName);
1486 case Runtime::kInlineToNumber: 1484 case Runtime::kInlineToNumber:
1487 return TypeUnaryOp(node, ToNumber); 1485 return TypeUnaryOp(node, ToNumber);
1488 case Runtime::kInlineToObject: 1486 case Runtime::kInlineToObject:
1489 return TypeUnaryOp(node, ToObject); 1487 return TypeUnaryOp(node, ToObject);
1490 case Runtime::kInlineToPrimitive:
1491 case Runtime::kInlineToPrimitive_Number:
1492 case Runtime::kInlineToPrimitive_String:
1493 return TypeUnaryOp(node, ToPrimitive);
1494 case Runtime::kInlineToString: 1488 case Runtime::kInlineToString:
1495 return TypeUnaryOp(node, ToString); 1489 return TypeUnaryOp(node, ToString);
1496 case Runtime::kHasInPrototypeChain: 1490 case Runtime::kHasInPrototypeChain:
1497 return Type::Boolean(); 1491 return Type::Boolean();
1498 default: 1492 default:
1499 break; 1493 break;
1500 } 1494 }
1501 return Type::Any(); 1495 return Type::Any();
1502 } 1496 }
1503 1497
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 } 2564 }
2571 if (Type::IsInteger(*value)) { 2565 if (Type::IsInteger(*value)) {
2572 return Type::Range(value->Number(), value->Number(), zone()); 2566 return Type::Range(value->Number(), value->Number(), zone());
2573 } 2567 }
2574 return Type::Constant(value, zone()); 2568 return Type::Constant(value, zone());
2575 } 2569 }
2576 2570
2577 } // namespace compiler 2571 } // namespace compiler
2578 } // namespace internal 2572 } // namespace internal
2579 } // namespace v8 2573 } // 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