Bug 917441 - Add missing #ifdef JS_ION.

This commit is contained in:
Brian Hackett 2013-09-18 11:14:38 -06:00
parent 110933c242
commit f93bc40c78

View File

@ -1228,6 +1228,7 @@ SetObjectElementOperation(JSContext *cx, Handle<JSObject*> obj, HandleId id, con
{
types::TypeScript::MonitorAssign(cx, obj, id);
#ifdef JS_ION
if (obj->isNative() && JSID_IS_INT(id)) {
uint32_t length = obj->getDenseInitializedLength();
int32_t i = JSID_TO_INT(id);
@ -1237,6 +1238,7 @@ SetObjectElementOperation(JSContext *cx, Handle<JSObject*> obj, HandleId id, con
script->baselineScript()->noteArrayWriteHole(pc - script->code);
}
}
#endif
if (obj->isNative() && !JSID_IS_INT(id) && !obj->setHadElementsAccess(cx))
return false;