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

Unified Diff: src/code-stubs.cc

Issue 2312723002: [stubs] Remove dead RepresentationFromType helper. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 2b81fede9e21dd62e128a240b658e04d6b4f4ed4..e61b621b02ab930760c28777099b75caa2120d4b 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -5836,23 +5836,6 @@ ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate,
InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
: PlatformCodeStub(isolate) {}
-Representation RepresentationFromType(AstType* type) {
- if (type->Is(AstType::UntaggedIntegral())) {
- return Representation::Integer32();
- }
-
- if (type->Is(AstType::TaggedSigned())) {
- return Representation::Smi();
- }
-
- if (type->Is(AstType::UntaggedPointer())) {
- return Representation::External();
- }
-
- DCHECK(!type->Is(AstType::Untagged()));
- return Representation::Tagged();
-}
-
Representation RepresentationFromMachineType(MachineType type) {
if (type == MachineType::Int32()) {
return Representation::Integer32();
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698