Remove unused-but-set variable from objects.cc.

This fixes compilation with newer GCCs.

R=erik.corry@gmail.com

Review URL: https://chromiumcodereview.appspot.com/10568006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11838 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a2e9f7c4
...@@ -7562,12 +7562,10 @@ MaybeObject* JSObject::OptimizeAsPrototype() { ...@@ -7562,12 +7562,10 @@ MaybeObject* JSObject::OptimizeAsPrototype() {
// Make sure prototypes are fast objects and their maps have the bit set // Make sure prototypes are fast objects and their maps have the bit set
// so they remain fast. // so they remain fast.
Map* proto_map = map();
if (!HasFastProperties()) { if (!HasFastProperties()) {
MaybeObject* new_proto = TransformToFastProperties(0); MaybeObject* new_proto = TransformToFastProperties(0);
if (new_proto->IsFailure()) return new_proto; if (new_proto->IsFailure()) return new_proto;
ASSERT(new_proto == this); ASSERT(new_proto == this);
proto_map = map();
} }
return this; return this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment