Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index c9e4c0f21974a8983024e4bc0b4f1415cccc87e1..089bd27c63cb494235e5bf4c798726445c398fbb 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -241,25 +241,6 @@ bool FunctionLiteral::NeedsHomeObject(Expression* expr) { |
} |
-// Helper to find an existing shared function info in the baseline code for the |
-// given function literal. Used to canonicalize SharedFunctionInfo objects. |
-void FunctionLiteral::InitializeSharedInfo( |
- Handle<Code> unoptimized_code) { |
- for (RelocIterator it(*unoptimized_code); !it.done(); it.next()) { |
- RelocInfo* rinfo = it.rinfo(); |
- if (rinfo->rmode() != RelocInfo::EMBEDDED_OBJECT) continue; |
- Object* obj = rinfo->target_object(); |
- if (obj->IsSharedFunctionInfo()) { |
- SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); |
- if (shared->start_position() == start_position()) { |
- shared_info_ = Handle<SharedFunctionInfo>(shared); |
- break; |
- } |
- } |
- } |
-} |
- |
- |
ObjectLiteralProperty::ObjectLiteralProperty(Expression* key, Expression* value, |
Kind kind, bool is_static, |
bool is_computed_name) |