mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Bug 807035 - Skip guard insertion if there is no proto. r=dvander
This commit is contained in:
parent
cb08b981d4
commit
ba9899d3fc
@ -114,7 +114,8 @@ GeneratePrototypeGuards(JSContext *cx, MacroAssembler &masm, JSObject *obj, JSOb
|
||||
JSObject *pobj = IsCacheableListBase(obj)
|
||||
? obj->getTaggedProto().toObjectOrNull()
|
||||
: obj->getProto();
|
||||
JS_ASSERT(pobj);
|
||||
if (!pobj)
|
||||
return;
|
||||
while (pobj != holder) {
|
||||
if (pobj->hasUncacheableProto()) {
|
||||
JS_ASSERT(!pobj->hasSingletonType());
|
||||
|
6
js/src/jit-test/tests/ion/bug807035.js
Normal file
6
js/src/jit-test/tests/ion/bug807035.js
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
x = [0, 0, 0, 0, 0, 0, 0, 0]
|
||||
y = ({}).__proto__
|
||||
x.sort(function() {
|
||||
y.z
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user