Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index eed54ce2bcdcd61aa7ec7e44b9664332597c7722..420ffbc1d93cfe857b578ef1b603dd5f0d5d49e6 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -42,20 +42,6 @@ namespace v8 { |
namespace internal { |
-TypeInfo TypeInfo::FromValue(Handle<Object> value) { |
- if (value->IsSmi()) { |
- return TypeInfo::Smi(); |
- } else if (value->IsHeapNumber()) { |
- return TypeInfo::IsInt32Double(HeapNumber::cast(*value)->value()) |
- ? TypeInfo::Integer32() |
- : TypeInfo::Double(); |
- } else if (value->IsString()) { |
- return TypeInfo::String(); |
- } |
- return TypeInfo::Unknown(); |
-} |
- |
- |
TypeFeedbackOracle::TypeFeedbackOracle(Handle<Code> code, |
Handle<Context> native_context, |
Isolate* isolate, |
@@ -598,14 +584,4 @@ void TypeFeedbackOracle::SetInfo(TypeFeedbackId ast_id, Object* target) { |
} |
-Representation Representation::FromType(TypeInfo info) { |
- if (info.IsUninitialized()) return Representation::None(); |
- if (info.IsSmi()) return Representation::Smi(); |
- if (info.IsInteger32()) return Representation::Integer32(); |
- if (info.IsDouble()) return Representation::Double(); |
- if (info.IsNumber()) return Representation::Double(); |
- return Representation::Tagged(); |
-} |
- |
- |
} } // namespace v8::internal |