mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset a7221c06e193 (bug 1096666) for check_spidermonkey_style.py failures
CLOSED TREE
This commit is contained in:
parent
1b1aa5dd75
commit
06d2a12db7
@ -51,7 +51,6 @@ JSCompartment::JSCompartment(Zone *zone, const JS::CompartmentOptions &options =
|
||||
#endif
|
||||
global_(nullptr),
|
||||
enterCompartmentDepth(0),
|
||||
totalTime(0),
|
||||
data(nullptr),
|
||||
objectMetadataCallback(nullptr),
|
||||
lastAnimationTime(0),
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include "vm/GlobalObject.h"
|
||||
#include "vm/PIC.h"
|
||||
#include "vm/SavedStacks.h"
|
||||
#include "prmjtime.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
@ -167,22 +166,10 @@ struct JSCompartment
|
||||
js::ReadBarrieredGlobalObject global_;
|
||||
|
||||
unsigned enterCompartmentDepth;
|
||||
int64_t startInterval;
|
||||
|
||||
public:
|
||||
int64_t totalTime;
|
||||
void enter() {
|
||||
if (addonId && !enterCompartmentDepth) {
|
||||
startInterval = PRMJ_Now();
|
||||
}
|
||||
enterCompartmentDepth++;
|
||||
}
|
||||
void leave() {
|
||||
enterCompartmentDepth--;
|
||||
if (addonId && !enterCompartmentDepth) {
|
||||
totalTime += (PRMJ_Now() - startInterval);
|
||||
}
|
||||
}
|
||||
void enter() { enterCompartmentDepth++; }
|
||||
void leave() { enterCompartmentDepth--; }
|
||||
bool hasBeenEntered() { return !!enterCompartmentDepth; }
|
||||
|
||||
JS::Zone *zone() { return zone_; }
|
||||
|
Loading…
Reference in New Issue
Block a user