зеркало из https://github.com/mozilla/gecko-dev.git
Bug 898451 - IonMonkey: Don't allocate static storage for id_count in non-DEBUG mode. r=nbp
This commit is contained in:
Родитель
865a6efa46
Коммит
60e46e3b3c
|
@ -2413,8 +2413,6 @@ AutoFlushInhibitor::~AutoFlushInhibitor()
|
|||
IonSpewCont(IonSpew_CacheFlush, "{");
|
||||
}
|
||||
|
||||
int js::ion::LabelBase::id_count = 0;
|
||||
|
||||
void
|
||||
ion::PurgeCaches(JSScript *script, Zone *zone)
|
||||
{
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef ion_shared_Assembler_shared_h
|
||||
#define ion_shared_Assembler_shared_h
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/PodOperations.h"
|
||||
|
||||
#include <limits.h>
|
||||
|
@ -202,17 +201,14 @@ struct LabelBase
|
|||
|
||||
// Disallow assignment.
|
||||
void operator =(const LabelBase &label);
|
||||
static int id_count;
|
||||
public:
|
||||
mozilla::DebugOnly <int> id;
|
||||
static const int32_t INVALID_OFFSET = -1;
|
||||
|
||||
LabelBase() : offset_(INVALID_OFFSET), bound_(false), id(id_count++)
|
||||
LabelBase() : offset_(INVALID_OFFSET), bound_(false)
|
||||
{ }
|
||||
LabelBase(const LabelBase &label)
|
||||
: offset_(label.offset_),
|
||||
bound_(label.bound_),
|
||||
id(id_count++)
|
||||
bound_(label.bound_)
|
||||
{ }
|
||||
|
||||
// If the label is bound, all incoming edges have been patched and any
|
||||
|
|
Загрузка…
Ссылка в новой задаче