diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-27 02:51:11 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-27 02:51:11 +0200 |
commit | 44a077980abb92dcea9ed374fd9719eaaf2f1458 (patch) | |
tree | dc262274ecda4799835232951bdb160b9a7b7d0e /js/src/jit | |
parent | c59c9682d351e641f184e1f8095f399fee179f62 (diff) | |
download | UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.gz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.lz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.xz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.zip |
Issue #1257 - Part 2: Remove watch/unwatch and JS watchpoint class.
Diffstat (limited to 'js/src/jit')
-rw-r--r-- | js/src/jit/BaselineIC.cpp | 6 | ||||
-rw-r--r-- | js/src/jit/IonCaches.cpp | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/js/src/jit/BaselineIC.cpp b/js/src/jit/BaselineIC.cpp index a001357f8..9530f65fa 100644 --- a/js/src/jit/BaselineIC.cpp +++ b/js/src/jit/BaselineIC.cpp @@ -4053,9 +4053,6 @@ TryAttachSetValuePropStub(JSContext* cx, HandleScript script, jsbytecode* pc, IC { MOZ_ASSERT(!*attached); - if (obj->watched()) - return true; - RootedShape shape(cx); RootedObject holder(cx); if (!EffectlesslyLookupProperty(cx, obj, id, &holder, &shape)) @@ -4151,9 +4148,6 @@ TryAttachSetAccessorPropStub(JSContext* cx, HandleScript script, jsbytecode* pc, MOZ_ASSERT(!*attached); MOZ_ASSERT(!*isTemporarilyUnoptimizable); - if (obj->watched()) - return true; - RootedShape shape(cx); RootedObject holder(cx); if (!EffectlesslyLookupProperty(cx, obj, id, &holder, &shape)) diff --git a/js/src/jit/IonCaches.cpp b/js/src/jit/IonCaches.cpp index 48e0792bb..fb4291188 100644 --- a/js/src/jit/IonCaches.cpp +++ b/js/src/jit/IonCaches.cpp @@ -3232,7 +3232,7 @@ SetPropertyIC::tryAttachStub(JSContext* cx, HandleScript outerScript, IonScript* MOZ_ASSERT(!*emitted); MOZ_ASSERT(!*tryNativeAddSlot); - if (!canAttachStub() || obj->watched()) + if (!canAttachStub()) return true; // Fail cache emission if the object is frozen @@ -3897,9 +3897,6 @@ IsDenseElementSetInlineable(JSObject* obj, const Value& idval, const ConstantOrR if (!obj->is<ArrayObject>()) return false; - if (obj->watched()) - return false; - if (!idval.isInt32()) return false; |