Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove unused-but-set variable from objects.cc.
Browse files Browse the repository at this point in the history
This fixes compilation with newer GCCs.

R=erik.corry@gmail.com

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@11838 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
  • Loading branch information
jakobkummerow authored and piscisaureus committed Jun 19, 2012
1 parent f94b85d commit 7282ce9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions deps/v8/src/objects.cc
Expand Up @@ -7514,12 +7514,10 @@ MaybeObject* JSObject::OptimizeAsPrototype() {

// Make sure prototypes are fast objects and their maps have the bit set
// so they remain fast.
Map* proto_map = map();
if (!HasFastProperties()) {
MaybeObject* new_proto = TransformToFastProperties(0);
if (new_proto->IsFailure()) return new_proto;
ASSERT(new_proto == this);
proto_map = map();
}
return this;
}
Expand Down

0 comments on commit 7282ce9

Please sign in to comment.