Initialize variable to make gcc happy.
http://code.google.com/p/v8/issues/detail?id=727 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4777 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
33973b7d13
commit
d55c1adb0a
@ -2958,7 +2958,7 @@ Object* JSObject::LookupAccessor(String* name, bool is_getter) {
|
|||||||
|
|
||||||
// Make the lookup and include prototypes.
|
// Make the lookup and include prototypes.
|
||||||
int accessor_index = is_getter ? kGetterIndex : kSetterIndex;
|
int accessor_index = is_getter ? kGetterIndex : kSetterIndex;
|
||||||
uint32_t index;
|
uint32_t index = 0; // Initialize index to make compiler happy.
|
||||||
if (name->AsArrayIndex(&index)) {
|
if (name->AsArrayIndex(&index)) {
|
||||||
for (Object* obj = this;
|
for (Object* obj = this;
|
||||||
obj != Heap::null_value();
|
obj != Heap::null_value();
|
||||||
|
Loading…
Reference in New Issue
Block a user