summaryrefslogtreecommitdiffstats
path: root/js/src/jit/MIR.h
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-06-30 12:38:18 +0300
committerwin7-7 <win7-7@users.noreply.github.com>2019-06-30 12:38:18 +0300
commit3051056bbb0b41b8258d91e44a4ff8ec33a98d8f (patch)
tree435214f56383925b337cc350452485717c4ea0d1 /js/src/jit/MIR.h
parent00812e30dfa70f9b1a752cf0d09de00f6d401c85 (diff)
parent98f7e3b16754aedd44747261113359b8d824449f (diff)
downloadUXP-3051056bbb0b41b8258d91e44a4ff8ec33a98d8f.tar
UXP-3051056bbb0b41b8258d91e44a4ff8ec33a98d8f.tar.gz
UXP-3051056bbb0b41b8258d91e44a4ff8ec33a98d8f.tar.lz
UXP-3051056bbb0b41b8258d91e44a4ff8ec33a98d8f.tar.xz
UXP-3051056bbb0b41b8258d91e44a4ff8ec33a98d8f.zip
Merge branch 'master' into FrameProperties
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r--js/src/jit/MIR.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h
index 6526e0931..9076339f1 100644
--- a/js/src/jit/MIR.h
+++ b/js/src/jit/MIR.h
@@ -375,7 +375,7 @@ class AliasSet {
Element = 1 << 1, // A Value member of obj->elements or
// a typed object.
UnboxedElement = 1 << 2, // An unboxed scalar or reference member of
- // typed object or unboxed object.
+ // typed object.
DynamicSlot = 1 << 3, // A Value member of obj->slots.
FixedSlot = 1 << 4, // A Value member of obj->fixedSlots().
DOMProperty = 1 << 5, // A DOM property
@@ -3758,14 +3758,9 @@ class MObjectState
{
private:
uint32_t numSlots_;
- uint32_t numFixedSlots_; // valid if isUnboxed() == false.
- OperandIndexMap* operandIndex_; // valid if isUnboxed() == true.
+ uint32_t numFixedSlots_;
- bool isUnboxed() const {
- return operandIndex_ != nullptr;
- }
-
- MObjectState(JSObject *templateObject, OperandIndexMap* operandIndex);
+ MObjectState(JSObject *templateObject);
explicit MObjectState(MObjectState* state);
MOZ_MUST_USE bool init(TempAllocator& alloc, MDefinition* obj);
@@ -3790,7 +3785,6 @@ class MObjectState
MOZ_MUST_USE bool initFromTemplateObject(TempAllocator& alloc, MDefinition* undefinedVal);
size_t numFixedSlots() const {
- MOZ_ASSERT(!isUnboxed());
return numFixedSlots_;
}
size_t numSlots() const {
@@ -3826,18 +3820,6 @@ class MObjectState
setSlot(slot + numFixedSlots(), def);
}
- // Interface reserved for unboxed objects.
- bool hasOffset(uint32_t offset) const {
- MOZ_ASSERT(isUnboxed());
- return offset < operandIndex_->map.length() && operandIndex_->map[offset] != 0;
- }
- MDefinition* getOffset(uint32_t offset) const {
- return getOperand(operandIndex_->map[offset]);
- }
- void setOffset(uint32_t offset, MDefinition* def) {
- replaceOperand(operandIndex_->map[offset], def);
- }
-
MOZ_MUST_USE bool writeRecoverData(CompactBufferWriter& writer) const override;
bool canRecoverOnBailout() const override {
return true;