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:
erik.corry@gmail.com 2010-06-02 08:17:19 +00:00
parent 33973b7d13
commit d55c1adb0a

View File

@ -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();