diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-20 10:27:23 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-20 10:27:23 +0100 |
commit | 3ee73ca14cec9ac99ebee938d76650ad11aa98da (patch) | |
tree | 3185284d74f6f043187611a45ad9352b653ec948 /js/src/frontend/BytecodeEmitter.h | |
parent | 893a886ea38853a1a3e97bcf135ea3cb616cd69a (diff) | |
download | UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.gz UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.lz UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.xz UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.zip |
Bug 1322314 - Disallow emitting ParseNode twice
Issue #73
[Depends on] Bug 1147371: Implement IteratorClose
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.h')
-rw-r--r-- | js/src/frontend/BytecodeEmitter.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h index 9a2ddb568..4b3750dd5 100644 --- a/js/src/frontend/BytecodeEmitter.h +++ b/js/src/frontend/BytecodeEmitter.h @@ -43,12 +43,10 @@ class CGConstList { struct CGObjectList { uint32_t length; /* number of emitted so far objects */ - ObjectBox* firstbox; /* first emitted object */ ObjectBox* lastbox; /* last emitted object */ - CGObjectList() : length(0), firstbox(nullptr), lastbox(nullptr) {} + CGObjectList() : length(0), lastbox(nullptr) {} - bool isAdded(ObjectBox* objbox); unsigned add(ObjectBox* objbox); unsigned indexOf(JSObject* obj); void finish(ObjectArray* array); |